DiskEntry.fromJson constructor

DiskEntry.fromJson(
  1. Map json_
)

Implementation

DiskEntry.fromJson(core.Map json_)
    : this(
        capacityBytes: json_.containsKey('capacityBytes')
            ? json_['capacityBytes'] as core.String
            : null,
        diskLabel: json_.containsKey('diskLabel')
            ? json_['diskLabel'] as core.String
            : null,
        diskLabelType: json_.containsKey('diskLabelType')
            ? json_['diskLabelType'] as core.String
            : null,
        freeBytes: json_.containsKey('freeBytes')
            ? json_['freeBytes'] as core.String
            : null,
        hwAddress: json_.containsKey('hwAddress')
            ? json_['hwAddress'] as core.String
            : null,
        interfaceType: json_.containsKey('interfaceType')
            ? json_['interfaceType'] as core.String
            : null,
        partitions: json_.containsKey('partitions')
            ? DiskPartitionList.fromJson(
                json_['partitions'] as core.Map<core.String, core.dynamic>)
            : null,
        vmware: json_.containsKey('vmware')
            ? VmwareDiskConfig.fromJson(
                json_['vmware'] as core.Map<core.String, core.dynamic>)
            : null,
      );