json property

Map<String, dynamic> json
override

JSON-encodable representation of object which can be encoded with json.encode()

Allowed types:

Implementation

@override
Map<String, dynamic> get json => {
      'amount': amount.json,
      'purchaseName': purchaseName,
      'purchaseDescription': purchaseDescription,
      'clientApplicationKey': clientApplicationKey,
      'savePaymentMethodMode': savePaymentMethodMode.json,
      'paymentMethods':
          paymentMethods?.map((method) => method.json)?.toList(),
      'gatewayId': gatewayId,
      'returnUrl': returnUrl,
      'userPhoneNumber': userPhoneNumber,
      'showYandexCheckoutLogo': showYandexCheckoutLogo,
      'iosTestModeSettings': iosTestModeSettings?.json,
      'applePayMerchantIdentifier': applePayMerchantIdentifier,
      'isLoggingEnabled': isLoggingEnabled,
      'iosColorScheme': iosColorScheme?.json,
      'androidTestModeSettings': androidTestModeSettings?.json,
      'androidColorScheme': androidColorScheme?.json,
      'shopId': shopId,
      'googlePayParameters':
          googlePayParameters?.map((param) => param.json)?.toList()
    }..removeWhere((key, val) => val == null);