GlassfyPermission.fromJson constructor
GlassfyPermission.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GlassfyPermission.fromJson(Map<String, dynamic> json) {
return GlassfyPermission(
json['permissionId'] as String?,
$enumDecodeNullable(_$GlassfyEntitlementEnumMap, json['entitlement']),
json['isValid'] as bool?,
_dateTimeFromJsonEpoch(json, 'expireDate'),
(json['accountableSkus'] as List<dynamic>?)
?.map(
(e) => GlassfyAccountableSku.fromJson(e as Map<String, dynamic>))
.toList(),
);
}