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 (port != null) 'port': port!,
      if (weight != null) 'weight': weight!,
      if (weightError != null) 'weightError': weightError!,
    };