CustomerInfo.fromJson constructor
CustomerInfo.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CustomerInfo.fromJson(Map<String, dynamic> json) => CustomerInfo(
EntitlementInfos.fromJson(Map<String, dynamic>.from(json['entitlements'])),
Map<String, dynamic>.from(json['allPurchaseDates']).map((k, v) => MapEntry(k, v as String?)),
(json['activeSubscriptions'] as List).map((e) => e as String).toList(),
(json['allPurchasedProductIdentifiers'] as List).map((e) => e as String).toList(),
(json['nonSubscriptionTransactions'] as List).map((e) => StoreTransaction.fromJson(Map<String, dynamic>.from(e))).toList(),
json['firstSeen'] as String,
json['originalAppUserId'] as String,
Map<String, dynamic>.from(json['allExpirationDates']).map((k, v) => MapEntry(k, v as String?)),
json['requestDate'] as String,
latestExpirationDate: json['latestExpirationDate'] as String?,
originalPurchaseDate: json['originalPurchaseDate'] as String?,
originalApplicationVersion: json['originalApplicationVersion'] as String?,
managementURL: json['managementURL'] as String?,
);