VirtualMachine.fromJson constructor

VirtualMachine.fromJson(
  1. Map json_
)

Implementation

VirtualMachine.fromJson(core.Map json_)
    : this(
        instanceId: json_.containsKey('instanceId')
            ? json_['instanceId'] as core.String
            : null,
        instanceName: json_.containsKey('instanceName')
            ? json_['instanceName'] as core.String
            : null,
        virtualMachineConfig: json_.containsKey('virtualMachineConfig')
            ? VirtualMachineConfig.fromJson(json_['virtualMachineConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
      );