GlassfyPermissions.fromJson constructor

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

Implementation

factory GlassfyPermissions.fromJson(Map<String, dynamic> json) {
  return GlassfyPermissions(
    json['installationId'] as String?,
    json['subscriberId'] as String?,
    json['originalApplicationVersion'] as String?,
    _dateTimeFromJsonEpoch(json, 'originalApplicationDate'),
    (json['all'] as List<dynamic>?)
        ?.map((e) => GlassfyPermission.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}