$EntitlementEntityFromJson function
Implementation
EntitlementEntity $EntitlementEntityFromJson(Map<String, dynamic> json) {
final EntitlementEntity entitlementEntity = EntitlementEntity();
final String? id = jsonConvert.convert<String>(json['id']);
if (id != null) {
entitlementEntity.id = id;
}
final String? productId = jsonConvert.convert<String>(json['productId']);
if (productId != null) {
entitlementEntity.productId = productId;
}
final bool? isActive = jsonConvert.convert<bool>(json['isActive']);
if (isActive != null) {
entitlementEntity.isActive = isActive;
}
final int? expireAt = jsonConvert.convert<int>(json['expireAt']);
if (expireAt != null) {
entitlementEntity.expireAt = expireAt;
}
return entitlementEntity;
}