GooglePayData.fromJson constructor
GooglePayData.fromJson(
- dynamic data
Implementation
factory GooglePayData.fromJson(dynamic data) {
var json = DynamicJsonExtension.getJsonMap(data);
return GooglePayData(
countryCode: json['country_code'],
merchantId: json['merchant_id'],
merchantName: json['merchant_name'],
currencyCode: json['currency_code'],
amount: json['amount']?.toDouble(),
gateway: json['gateway'],
gatewayMerchantId: json['gateway_merchant_id'],
);
}