BodyBulk.fromJson constructor

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

Implementation

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