ContentUpdateBody.fromJson constructor

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

Implementation

factory ContentUpdateBody.fromJson(Map<String, Object?> json) {
  return ContentUpdateBody(
    view: json[r'view'] != null
        ? ContentBodyCreate.fromJson(json[r'view']! as Map<String, Object?>)
        : null,
    exportView: json[r'export_view'] != null
        ? ContentBodyCreate.fromJson(
            json[r'export_view']! as Map<String, Object?>)
        : null,
    styledView: json[r'styled_view'] != null
        ? ContentBodyCreate.fromJson(
            json[r'styled_view']! as Map<String, Object?>)
        : null,
    storage: json[r'storage'] != null
        ? ContentBodyCreateStorage.fromJson(
            json[r'storage']! as Map<String, Object?>)
        : null,
    editor: json[r'editor'] != null
        ? ContentBodyCreate.fromJson(json[r'editor']! as Map<String, Object?>)
        : null,
    editor2: json[r'editor2'] != null
        ? ContentBodyCreate.fromJson(
            json[r'editor2']! as Map<String, Object?>)
        : null,
    wiki: json[r'wiki'] != null
        ? ContentBodyCreate.fromJson(json[r'wiki']! as Map<String, Object?>)
        : null,
    atlasDocFormat: json[r'atlas_doc_format'] != null
        ? ContentBodyCreate.fromJson(
            json[r'atlas_doc_format']! as Map<String, Object?>)
        : null,
    anonymousExportView: json[r'anonymous_export_view'] != null
        ? ContentBodyCreate.fromJson(
            json[r'anonymous_export_view']! as Map<String, Object?>)
        : null,
  );
}