CustomContentBodySingle.fromJson constructor

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

Implementation

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