Items.fromJson constructor
Implementation
factory Items.fromJson(Map<String, dynamic> json) {
return Items(
id: json['id'] ?? '',
name: json['name'] ?? '',
nameKh: json['name_kh'] ?? '',
logo: json['logo'] ?? '',
isFavorite: json['is_favorite'] ?? false,
fee: (json['fee'] ?? '' as num).toDouble(),
feeDisplay: json['fee_display'] ?? '',
supportDeeplink: json['support_deeplink'] ?? '',
supportCheckoutPage: json['support_checkout_page'] ?? '',
);
}