Entitlement.fromJson constructor
Implementation
factory Entitlement.fromJson(Map<String, dynamic> json) {
return Entitlement(
customerIdentifier: json['CustomerIdentifier'] as String?,
dimension: json['Dimension'] as String?,
expirationDate: timeStampFromJson(json['ExpirationDate']),
productCode: json['ProductCode'] as String?,
value: json['Value'] != null
? EntitlementValue.fromJson(json['Value'] as Map<String, dynamic>)
: null,
);
}