SpacePermissionPrincipal.fromJson constructor

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

Implementation

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