One UI in flutter
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.
 
 
 
 
 
 

48 lines
1.6 KiB

class AcCompanyModel {
late String mCompanyAddress;
late String mCompanyAddressLocation;
late String mCompanyEmail;
late String mCompanyHp;
late String mCompanyID;
late String mCompanyName;
late String mCompanyNumber;
late String mCompanyPIC;
late String mCompanyPhone;
AcCompanyModel({
required this.mCompanyAddress,
required this.mCompanyAddressLocation,
required this.mCompanyEmail,
required this.mCompanyHp,
required this.mCompanyID,
required this.mCompanyName,
required this.mCompanyNumber,
required this.mCompanyPhone,
});
AcCompanyModel.fromJson(Map<String, dynamic> json) {
mCompanyAddress = json['M_CompanyAddress'] ?? "";
mCompanyAddressLocation = json['M_CompanyAddressLocation'] ?? "";
mCompanyEmail = json['M_CompanyEmail'] ?? "";
mCompanyHp = json['M_CompanyHp'] ?? "";
mCompanyID = json['M_CompanyID'] ?? "";
mCompanyName = json['M_CompanyName'] ?? "";
mCompanyNumber = json['M_CompanyNumber'] ?? "";
mCompanyPIC = json['M_CompanyPIC'] ?? "";
mCompanyPhone = json['M_CompanyPhone'] ?? "";
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['M_CompanyAddress'] = mCompanyAddress;
data['M_CompanyAddressLocation'] = mCompanyAddressLocation;
data['M_CompanyEmail'] = mCompanyEmail;
data['M_CompanyHp'] = mCompanyHp;
data['M_CompanyID'] = mCompanyID;
data['M_CompanyName'] = mCompanyName;
data['M_CompanyNumber'] = mCompanyNumber;
data['M_CompanyPIC'] = mCompanyPIC;
data['M_CompanyPhone'] = mCompanyPhone;
return data;
}
}