ResourcePermission.fromJson constructor

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

Implementation

factory ResourcePermission.fromJson(Map<String, dynamic> json) {
  return ResourcePermission(
    actions: (json['Actions'] as List)
        .whereNotNull()
        .map((e) => e as String)
        .toList(),
    principal: json['Principal'] as String,
  );
}