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.

51 lines
1.4 KiB

2 years ago
class AcMouResponseModel {
late String mMouEndDate;
late String mMouID;
late String mMouIsActive;
late String mMouIsMcu;
late String mMouName;
late String mMouNote;
late String mMouNumber;
late String mMouStartDate;
2 years ago
late bool isCheck;
2 years ago
AcMouResponseModel({
required this.mMouEndDate,
required this.mMouID,
required this.mMouIsActive,
required this.mMouIsMcu,
required this.mMouName,
required this.mMouNote,
required this.mMouNumber,
required this.mMouStartDate,
2 years ago
this.isCheck = false,
2 years ago
});
AcMouResponseModel.fromJson(Map<String, dynamic> json) {
mMouEndDate = json['M_MouEndDate'] ?? "";
mMouID = json['M_MouID'].toString();
mMouIsActive = json['M_MouIsActive'] ?? "";
mMouIsMcu = json['M_MouIsMcu'] ?? "";
mMouName = json['M_MouName'] ?? "";
mMouNote = json['M_MouNote'] ?? "";
mMouNumber = json['M_MouNumber'] ?? "";
mMouStartDate = json['M_MouStartDate'] ?? "";
2 years ago
isCheck = false;
}
void setCheck(bool val) {
isCheck = val;
2 years ago
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['M_MouEndDate'] = mMouEndDate;
data['M_MouID'] = mMouID;
data['M_MouIsActive'] = mMouIsActive;
data['M_MouIsMcu'] = mMouIsMcu;
data['M_MouName'] = mMouName;
data['M_MouNote'] = mMouNote;
data['M_MouNumber'] = mMouNumber;
data['M_MouStartDate'] = mMouStartDate;
return data;
}
}