MachineDetails.fromJson constructor

MachineDetails.fromJson(
  1. Map json_
)

Implementation

MachineDetails.fromJson(core.Map json_)
    : this(
        architecture: json_.containsKey('architecture')
            ? MachineArchitectureDetails.fromJson(
                json_['architecture'] as core.Map<core.String, core.dynamic>)
            : null,
        coreCount: json_.containsKey('coreCount')
            ? json_['coreCount'] as core.int
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        disks: json_.containsKey('disks')
            ? MachineDiskDetails.fromJson(
                json_['disks'] as core.Map<core.String, core.dynamic>)
            : null,
        guestOs: json_.containsKey('guestOs')
            ? GuestOsDetails.fromJson(
                json_['guestOs'] as core.Map<core.String, core.dynamic>)
            : null,
        machineName: json_.containsKey('machineName')
            ? json_['machineName'] as core.String
            : null,
        memoryMb: json_.containsKey('memoryMb')
            ? json_['memoryMb'] as core.int
            : null,
        network: json_.containsKey('network')
            ? MachineNetworkDetails.fromJson(
                json_['network'] as core.Map<core.String, core.dynamic>)
            : null,
        platform: json_.containsKey('platform')
            ? PlatformDetails.fromJson(
                json_['platform'] as core.Map<core.String, core.dynamic>)
            : null,
        powerState: json_.containsKey('powerState')
            ? json_['powerState'] as core.String
            : null,
        uuid: json_.containsKey('uuid') ? json_['uuid'] as core.String : null,
      );