SpaceUpdate.fromJson constructor

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

Implementation

factory SpaceUpdate.fromJson(Map<String, Object?> json) {
  return SpaceUpdate(
    name: json[r'name'] as String?,
    description: json[r'description'] != null
        ? SpaceDescriptionCreate.fromJson(
            json[r'description']! as Map<String, Object?>)
        : null,
    homepage: json[r'homepage'] as Map<String, Object?>?,
    type: json[r'type'] as String?,
    status: json[r'status'] as String?,
  );
}