Entitlement.fromMap constructor

Entitlement.fromMap(
  1. Map map
)

Implementation

factory Entitlement.fromMap(Map<dynamic, dynamic> map) {
  return Entitlement(
    productId: map['productId'] ?? '',
    store: map['store'] ?? '',
    status: map['status'] ?? '',
    expiresAt: map['expiresAt'],
    isTrial: map['isTrial'] ?? false,
    offerType: map['offerType'],
  );
}