SubscriptionPurchaseV2.fromJson constructor
SubscriptionPurchaseV2.fromJson(
- Map json_
Implementation
SubscriptionPurchaseV2.fromJson(core.Map json_)
: this(
acknowledgementState: json_['acknowledgementState'] as core.String?,
canceledStateContext: json_.containsKey('canceledStateContext')
? CanceledStateContext.fromJson(json_['canceledStateContext']
as core.Map<core.String, core.dynamic>)
: null,
externalAccountIdentifiers:
json_.containsKey('externalAccountIdentifiers')
? ExternalAccountIdentifiers.fromJson(
json_['externalAccountIdentifiers']
as core.Map<core.String, core.dynamic>)
: null,
kind: json_['kind'] as core.String?,
latestOrderId: json_['latestOrderId'] as core.String?,
lineItems: (json_['lineItems'] as core.List?)
?.map((value) => SubscriptionPurchaseLineItem.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList(),
linkedPurchaseToken: json_['linkedPurchaseToken'] as core.String?,
pausedStateContext: json_.containsKey('pausedStateContext')
? PausedStateContext.fromJson(json_['pausedStateContext']
as core.Map<core.String, core.dynamic>)
: null,
regionCode: json_['regionCode'] as core.String?,
startTime: json_['startTime'] as core.String?,
subscribeWithGoogleInfo: json_.containsKey('subscribeWithGoogleInfo')
? SubscribeWithGoogleInfo.fromJson(
json_['subscribeWithGoogleInfo']
as core.Map<core.String, core.dynamic>)
: null,
subscriptionState: json_['subscriptionState'] as core.String?,
testPurchase: json_.containsKey('testPurchase')
? TestPurchase.fromJson(
json_['testPurchase'] as core.Map<core.String, core.dynamic>)
: null,
);