TestIamPermissionsResponse.fromJson constructor
TestIamPermissionsResponse.fromJson(
- Object? j
Implementation
factory TestIamPermissionsResponse.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return TestIamPermissionsResponse(
permissions: switch (json['permissions']) {
null => [],
List<Object?> $1 => [for (final i in $1) decodeString(i)],
_ => throw const FormatException('"permissions" is not a list'),
},
);
}