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.1 KiB
Dart
41 lines
1.1 KiB
Dart
class GlsResponseModel {
|
|
String porOrgacode;
|
|
String pcaGlaccode;
|
|
String pcaGlacdesc;
|
|
String pcaGlacshort;
|
|
|
|
GlsResponseModel({
|
|
this.porOrgacode = "",
|
|
this.pcaGlaccode = "",
|
|
this.pcaGlacdesc = "",
|
|
this.pcaGlacshort = "",
|
|
});
|
|
|
|
factory GlsResponseModel.fromMap(Map<String, dynamic> map) {
|
|
return GlsResponseModel(
|
|
porOrgacode: map['porOrgacode'] ?? '',
|
|
pcaGlaccode: map['pcaGlaccode'] ?? '',
|
|
pcaGlacdesc: map['pcaGlacdesc'] ?? '',
|
|
pcaGlacshort: map['pcaGlacshort'] ?? '',
|
|
);
|
|
}
|
|
|
|
static List<GlsResponseModel> fromList(List<dynamic> list) {
|
|
return list.map((item) => GlsResponseModel.fromMap(item as Map<String, dynamic>)).toList();
|
|
}
|
|
|
|
Map<String, dynamic> toMap() {
|
|
return {
|
|
'porOrgacode': porOrgacode,
|
|
'pcaGlaccode': pcaGlaccode,
|
|
'pcaGlacdesc': pcaGlacdesc,
|
|
'pcaGlacshort': pcaGlacshort,
|
|
};
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return 'GlsResponseModel{porOrgacode: $porOrgacode, pcaGlaccode: $pcaGlaccode, pcaGlacdesc: $pcaGlacdesc, pcaGlacshort: $pcaGlacshort}';
|
|
}
|
|
}
|