BankPaymentMethod.fromJson constructor
BankPaymentMethod.fromJson(
- Map<String, dynamic> json
)
Implementation
factory BankPaymentMethod.fromJson(Map<String, dynamic> json) {
List<Items> itemsList = <Items>[];
if (json['items'] != null) {
itemsList =
List<Items>.from(json['items'].map((model) => Items.fromJson(model)));
}
return BankPaymentMethod(
webSection: json['web_section'] ?? ' ',
webSectionKh: json['web_section_kh'] ?? '',
section: json['section'] ?? '',
sectionKh: json['section_kh'] ?? '',
items: itemsList,
);
}