SpaceDescription.fromJson constructor
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,
);
}