ContentCreateSpaceDescription.fromJson constructor

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

Implementation

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