toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (address != null) 'address': address!,
      if (connectionType != null) 'connectionType': connectionType!,
      if (forwardingRule != null) 'forwardingRule': forwardingRule!,
      if (network != null) 'network': network!,
      if (port != null) 'port': port!,
      if (projectId != null) 'projectId': projectId!,
      if (pscConnectionId != null) 'pscConnectionId': pscConnectionId!,
      if (pscConnectionStatus != null)
        'pscConnectionStatus': pscConnectionStatus!,
      if (serviceAttachment != null) 'serviceAttachment': serviceAttachment!,
    };