SpaceDescription.fromJson constructor

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

Implementation

factory SpaceDescription.fromJson(Map<String, Object?> json) {
  return SpaceDescription(
    plain: json[r'plain'] != null
        ? BodyType.fromJson(json[r'plain']! as Map<String, Object?>)
        : null,
    view: json[r'view'] != null
        ? BodyType.fromJson(json[r'view']! as Map<String, Object?>)
        : null,
  );
}