CheckoutLicenseResponse.fromJson constructor
CheckoutLicenseResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CheckoutLicenseResponse.fromJson(Map<String, dynamic> json) {
return CheckoutLicenseResponse(
checkoutType: (json['CheckoutType'] as String?)?.toCheckoutType(),
entitlementsAllowed: (json['EntitlementsAllowed'] as List?)
?.whereNotNull()
.map((e) => EntitlementData.fromJson(e as Map<String, dynamic>))
.toList(),
expiration: json['Expiration'] as String?,
issuedAt: json['IssuedAt'] as String?,
licenseConsumptionToken: json['LicenseConsumptionToken'] as String?,
nodeId: json['NodeId'] as String?,
signedToken: json['SignedToken'] as String?,
);
}