SpacePermission.fromJson constructor

SpacePermission.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory SpacePermission.fromJson(Map<String, Object?> json) {
  return SpacePermission(
    id: json[r'id'] as String?,
    principal: json[r'principal'] != null
        ? SpacePermissionPrincipal.fromJson(
            json[r'principal']! as Map<String, Object?>)
        : null,
    operation: json[r'operation'] != null
        ? SpacePermissionOperation.fromJson(
            json[r'operation']! as Map<String, Object?>)
        : null,
  );
}