AzureVmDetails.fromJson constructor

AzureVmDetails.fromJson(
  1. Map json_
)

Implementation

AzureVmDetails.fromJson(core.Map json_)
    : this(
        bootOption: json_.containsKey('bootOption')
            ? json_['bootOption'] as core.String
            : null,
        committedStorageMb: json_.containsKey('committedStorageMb')
            ? json_['committedStorageMb'] as core.String
            : null,
        computerName: json_.containsKey('computerName')
            ? json_['computerName'] as core.String
            : null,
        cpuCount: json_.containsKey('cpuCount')
            ? json_['cpuCount'] as core.int
            : null,
        diskCount: json_.containsKey('diskCount')
            ? json_['diskCount'] as core.int
            : null,
        disks: json_.containsKey('disks')
            ? (json_['disks'] as core.List)
                .map((value) => Disk.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        memoryMb: json_.containsKey('memoryMb')
            ? json_['memoryMb'] as core.int
            : null,
        osDescription: json_.containsKey('osDescription')
            ? OSDescription.fromJson(
                json_['osDescription'] as core.Map<core.String, core.dynamic>)
            : null,
        osDisk: json_.containsKey('osDisk')
            ? OSDisk.fromJson(
                json_['osDisk'] as core.Map<core.String, core.dynamic>)
            : null,
        powerState: json_.containsKey('powerState')
            ? json_['powerState'] as core.String
            : null,
        tags: json_.containsKey('tags')
            ? (json_['tags'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        vmId: json_.containsKey('vmId') ? json_['vmId'] as core.String : null,
        vmSize: json_.containsKey('vmSize')
            ? json_['vmSize'] as core.String
            : null,
      );