Entitlement.fromJson constructor

Entitlement.fromJson(
  1. Map<String, dynamic> json
)

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,
  );
}