CheckoutBorrowLicenseResponse.fromJson constructor
CheckoutBorrowLicenseResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CheckoutBorrowLicenseResponse.fromJson(Map<String, dynamic> json) {
return CheckoutBorrowLicenseResponse(
checkoutMetadata: (json['CheckoutMetadata'] as List?)
?.whereNotNull()
.map((e) => Metadata.fromJson(e as Map<String, dynamic>))
.toList(),
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?,
licenseArn: json['LicenseArn'] as String?,
licenseConsumptionToken: json['LicenseConsumptionToken'] as String?,
nodeId: json['NodeId'] as String?,
signedToken: json['SignedToken'] as String?,
);
}