toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (error != null) 'error': error!,
      if (errorInfo != null) 'errorInfo': errorInfo!,
      if (errorType != null) 'errorType': errorType!,
      if (forwardingRule != null) 'forwardingRule': forwardingRule!,
      if (gceOperation != null) 'gceOperation': gceOperation!,
      if (ip != null) 'ip': ip!,
      if (network != null) 'network': network!,
      if (project != null) 'project': project!,
      if (pscConnectionId != null) 'pscConnectionId': pscConnectionId!,
      if (selectedSubnetwork != null)
        'selectedSubnetwork': selectedSubnetwork!,
      if (serviceAttachmentUri != null)
        'serviceAttachmentUri': serviceAttachmentUri!,
      if (state != null) 'state': state!,
    };