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