AuthorizationMerchantData.fromJson constructor
AuthorizationMerchantData.fromJson(
- Object? json
Implementation
factory AuthorizationMerchantData.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return AuthorizationMerchantData(
category: map['category'] == null
? null
: AuthorizationCategory.fromJson(map['category']),
city: map['city'] == null ? null : (map['city'] as String),
country: map['country'] == null ? null : (map['country'] as String),
name: map['name'] == null ? null : (map['name'] as String),
networkId:
map['network_id'] == null ? null : (map['network_id'] as String),
postalCode:
map['postal_code'] == null ? null : (map['postal_code'] as String),
state: map['state'] == null ? null : (map['state'] as String),
terminalId:
map['terminal_id'] == null ? null : (map['terminal_id'] as String),
url: map['url'] == null ? null : (map['url'] as String),
);
}