You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
watermanagement-supplier/lib/models/pending_suppliers_model.dart

25 lines
672 B

import 'package:flutter/material.dart';
import 'package:watermanagement/settings.dart';
class PendingSuppliersModel {
String customer_name = '';
String customer_phone_number='';
String customer_address='';
String customer_id='';
Color text_color=Colors.black;
PendingSuppliersModel();
factory PendingSuppliersModel.fromJson(Map<String, dynamic> json){
PendingSuppliersModel rtvm = new PendingSuppliersModel();
rtvm.customer_name = json['username'] ?? '';
rtvm.customer_phone_number = json['phone'] ?? '';
rtvm.customer_address = json['profile']['address1'] ?? '';
rtvm.customer_id = json['customerId'] ?? '';
return rtvm;
}
}