toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (accelerators != null) 'accelerators': accelerators!,
      if (consumedResources != null) 'consumedResources': consumedResources!,
      if (cpuOvercommitType != null) 'cpuOvercommitType': cpuOvercommitType!,
      if (disks != null) 'disks': disks!,
      if (instanceConsumptionData != null)
        'instanceConsumptionData': instanceConsumptionData!,
      if (instances != null) 'instances': instances!,
      if (name != null) 'name': name!,
      if (nodeType != null) 'nodeType': nodeType!,
      if (satisfiesPzs != null) 'satisfiesPzs': satisfiesPzs!,
      if (serverBinding != null) 'serverBinding': serverBinding!,
      if (serverId != null) 'serverId': serverId!,
      if (status != null) 'status': status!,
      if (totalResources != null) 'totalResources': totalResources!,
      if (upcomingMaintenance != null)
        'upcomingMaintenance': upcomingMaintenance!,
    };