toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (createTime != null) 'createTime': createTime!,
  if (firmwareVersion != null) 'firmwareVersion': firmwareVersion!,
  if (hyperthreadingEnabled != null)
    'hyperthreadingEnabled': hyperthreadingEnabled!,
  if (id != null) 'id': id!,
  if (interactiveSerialConsoleEnabled != null)
    'interactiveSerialConsoleEnabled': interactiveSerialConsoleEnabled!,
  if (kmsKeyVersion != null) 'kmsKeyVersion': kmsKeyVersion!,
  if (labels != null) 'labels': labels!,
  if (logicalInterfaces != null) 'logicalInterfaces': logicalInterfaces!,
  if (loginInfo != null) 'loginInfo': loginInfo!,
  if (luns != null) 'luns': luns!,
  if (machineType != null) 'machineType': machineType!,
  if (name != null) 'name': name!,
  if (networkTemplate != null) 'networkTemplate': networkTemplate!,
  if (networks != null) 'networks': networks!,
  if (osImage != null) 'osImage': osImage!,
  if (pod != null) 'pod': pod!,
  if (sshKeys != null) 'sshKeys': sshKeys!,
  if (state != null) 'state': state!,
  if (updateTime != null) 'updateTime': updateTime!,
  if (volumes != null) 'volumes': volumes!,
  if (workloadProfile != null) 'workloadProfile': workloadProfile!,
};