Volume.fromJson constructor

Volume.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Volume.fromJson(Map<String, dynamic> json) {
  return Volume(
    host: json['host'] != null
        ? Host.fromJson(json['host'] as Map<String, dynamic>)
        : null,
    name: json['name'] as String?,
  );
}