Entitlement.fromJson constructor

Entitlement.fromJson(
  1. Map json_
)

Implementation

Entitlement.fromJson(core.Map json_)
    : this(
        detail: json_.containsKey('detail')
            ? json_['detail'] as core.String
            : null,
        expireTime: json_.containsKey('expireTime')
            ? json_['expireTime'] as core.String
            : null,
        productId: json_.containsKey('productId')
            ? json_['productId'] as core.String
            : null,
        subscriptionToken: json_.containsKey('subscriptionToken')
            ? json_['subscriptionToken'] as core.String
            : null,
      );