Permission.fromJson constructor

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

Implementation

factory Permission.fromJson(Map<String, dynamic> json) {
  return Permission(
    access: (json['Access'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    grantee: json['Grantee'] as String?,
    granteeType: json['GranteeType'] as String?,
  );
}