CustomContentBodyBulk.fromJson constructor

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

Implementation

factory CustomContentBodyBulk.fromJson(Map<String, Object?> json) {
  return CustomContentBodyBulk(
    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,
  );
}