AccountsLinkRequest.fromJson constructor

AccountsLinkRequest.fromJson(
  1. Map json_
)

Implementation

AccountsLinkRequest.fromJson(core.Map json_)
    : this(
        action: json_.containsKey('action')
            ? json_['action'] as core.String
            : null,
        eCommercePlatformLinkInfo:
            json_.containsKey('eCommercePlatformLinkInfo')
                ? ECommercePlatformLinkInfo.fromJson(
                    json_['eCommercePlatformLinkInfo']
                        as core.Map<core.String, core.dynamic>)
                : null,
        linkType: json_.containsKey('linkType')
            ? json_['linkType'] as core.String
            : null,
        linkedAccountId: json_.containsKey('linkedAccountId')
            ? json_['linkedAccountId'] as core.String
            : null,
        paymentServiceProviderLinkInfo:
            json_.containsKey('paymentServiceProviderLinkInfo')
                ? PaymentServiceProviderLinkInfo.fromJson(
                    json_['paymentServiceProviderLinkInfo']
                        as core.Map<core.String, core.dynamic>)
                : null,
        services: json_.containsKey('services')
            ? (json_['services'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );