toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (accelerators != null) 'accelerators': accelerators!,
      if (cpuOvercommitType != null) 'cpuOvercommitType': cpuOvercommitType!,
      if (creationTimestamp != null) 'creationTimestamp': creationTimestamp!,
      if (description != null) 'description': description!,
      if (disks != null) 'disks': disks!,
      if (id != null) 'id': id!,
      if (kind != null) 'kind': kind!,
      if (name != null) 'name': name!,
      if (nodeAffinityLabels != null)
        'nodeAffinityLabels': nodeAffinityLabels!,
      if (nodeType != null) 'nodeType': nodeType!,
      if (nodeTypeFlexibility != null)
        'nodeTypeFlexibility': nodeTypeFlexibility!,
      if (region != null) 'region': region!,
      if (selfLink != null) 'selfLink': selfLink!,
      if (serverBinding != null) 'serverBinding': serverBinding!,
      if (status != null) 'status': status!,
      if (statusMessage != null) 'statusMessage': statusMessage!,
    };