MachineDiskDetails.fromJson constructor

MachineDiskDetails.fromJson(
  1. Map json_
)

Implementation

MachineDiskDetails.fromJson(core.Map json_)
    : this(
        disks: json_.containsKey('disks')
            ? DiskEntryList.fromJson(
                json_['disks'] as core.Map<core.String, core.dynamic>)
            : null,
        totalCapacityBytes: json_.containsKey('totalCapacityBytes')
            ? json_['totalCapacityBytes'] as core.String
            : null,
        totalFreeBytes: json_.containsKey('totalFreeBytes')
            ? json_['totalFreeBytes'] as core.String
            : null,
      );