toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (architecture != null) 'architecture': architecture!,
      if (bootOption != null) 'bootOption': bootOption!,
      if (committedStorageMb != null)
        'committedStorageMb': committedStorageMb!,
      if (cpuCount != null) 'cpuCount': cpuCount!,
      if (diskCount != null) 'diskCount': diskCount!,
      if (displayName != null) 'displayName': displayName!,
      if (instanceType != null) 'instanceType': instanceType!,
      if (memoryMb != null) 'memoryMb': memoryMb!,
      if (osDescription != null) 'osDescription': osDescription!,
      if (powerState != null) 'powerState': powerState!,
      if (securityGroups != null) 'securityGroups': securityGroups!,
      if (sourceDescription != null) 'sourceDescription': sourceDescription!,
      if (sourceId != null) 'sourceId': sourceId!,
      if (tags != null) 'tags': tags!,
      if (virtualizationType != null)
        'virtualizationType': virtualizationType!,
      if (vmId != null) 'vmId': vmId!,
      if (vpcId != null) 'vpcId': vpcId!,
      if (zone != null) 'zone': zone!,
    };