Volume.fromJson constructor

Volume.fromJson(
  1. Map json_
)

Implementation

Volume.fromJson(core.Map json_)
    : this(
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        sizeGb: json_.containsKey('sizeGb')
            ? (json_['sizeGb'] as core.num).toDouble()
            : null,
        volumeType: json_.containsKey('volumeType')
            ? json_['volumeType'] as core.String
            : null,
      );