You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.2 KiB
Dart
41 lines
1.2 KiB
Dart
class GenerateReportRequestModel {
|
|
final String porOrgacode;
|
|
final String mbmBkmsnumber;
|
|
final String sgtGntrvaluedatefrom;
|
|
final String sgtGntrvaluedateto;
|
|
final String type;
|
|
|
|
GenerateReportRequestModel({
|
|
required this.porOrgacode,
|
|
required this.mbmBkmsnumber,
|
|
required this.sgtGntrvaluedatefrom,
|
|
required this.sgtGntrvaluedateto,
|
|
required this.type,
|
|
});
|
|
|
|
Map<String, dynamic> toMap() {
|
|
return {
|
|
'porOrgacode': porOrgacode,
|
|
'mbmBkmsnumber': mbmBkmsnumber,
|
|
'sgtGntrvaluedatefrom': sgtGntrvaluedatefrom,
|
|
'sgtGntrvaluedateto': sgtGntrvaluedateto,
|
|
'type': type,
|
|
};
|
|
}
|
|
|
|
factory GenerateReportRequestModel.fromMap(Map<String, dynamic> map) {
|
|
return GenerateReportRequestModel(
|
|
porOrgacode: map['porOrgacode'],
|
|
mbmBkmsnumber: map['mbmBkmsnumber'],
|
|
sgtGntrvaluedatefrom: map['sgtGntrvaluedatefrom'],
|
|
sgtGntrvaluedateto: map['sgtGntrvaluedateto'],
|
|
type: map['type'],
|
|
);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return 'TransactionHistoryRequest{porOrgacode: $porOrgacode, mbmBkmsnumber: $mbmBkmsnumber, sgtGntrvaluedatefrom: $sgtGntrvaluedatefrom, sgtGntrvaluedateto: $sgtGntrvaluedateto, type: $type}';
|
|
}
|
|
}
|