AzureSourceVmDetails.fromJson constructor

AzureSourceVmDetails.fromJson(
  1. Map json_
)

Implementation

AzureSourceVmDetails.fromJson(core.Map json_)
    : this(
        committedStorageBytes: json_.containsKey('committedStorageBytes')
            ? json_['committedStorageBytes'] as core.String
            : null,
        disks: json_.containsKey('disks')
            ? (json_['disks'] as core.List)
                .map((value) => AzureDiskDetails.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        firmware: json_.containsKey('firmware')
            ? json_['firmware'] as core.String
            : null,
        vmCapabilitiesInfo: json_.containsKey('vmCapabilitiesInfo')
            ? VmCapabilities.fromJson(json_['vmCapabilitiesInfo']
                as core.Map<core.String, core.dynamic>)
            : null,
      );