PageNestedBodyWrite.fromJson constructor

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

Implementation

factory PageNestedBodyWrite.fromJson(Map<String, Object?> json) {
  return PageNestedBodyWrite(
    storage: json[r'storage'] != null
        ? PageBodyWrite.fromJson(json[r'storage']! as Map<String, Object?>)
        : null,
    atlasDocFormat: json[r'atlas_doc_format'] != null
        ? PageBodyWrite.fromJson(
            json[r'atlas_doc_format']! as Map<String, Object?>)
        : null,
    wiki: json[r'wiki'] != null
        ? PageBodyWrite.fromJson(json[r'wiki']! as Map<String, Object?>)
        : null,
  );
}