toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (annotations != null) 'annotations': annotations!,
  if (forwardingRule != null) 'forwardingRule': forwardingRule!,
  if (forwardingRuleIp != null) 'forwardingRuleIp': forwardingRuleIp!,
  if (healthState != null) 'healthState': healthState!,
  if (instance != null) 'instance': instance!,
  if (ipAddress != null) 'ipAddress': ipAddress!,
  if (ipv6Address != null) 'ipv6Address': ipv6Address!,
  if (ipv6HealthState != null) 'ipv6HealthState': ipv6HealthState!,
  if (port != null) 'port': port!,
  if (weight != null) 'weight': weight!,
  if (weightError != null) 'weightError': weightError!,
};