Disk.fromJson constructor

Disk.fromJson(
  1. Map _json
)

Implementation

Disk.fromJson(core.Map _json)
    : this(
        diskType: _json.containsKey('diskType')
            ? _json['diskType'] as core.String
            : null,
        mountPoint: _json.containsKey('mountPoint')
            ? _json['mountPoint'] as core.String
            : null,
        sizeGb:
            _json.containsKey('sizeGb') ? _json['sizeGb'] as core.int : null,
      );