toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (consumerAddress != null) 'consumerAddress': consumerAddress!,
      if (consumerForwardingRule != null)
        'consumerForwardingRule': consumerForwardingRule!,
      if (consumerTargetProject != null)
        'consumerTargetProject': consumerTargetProject!,
      if (error != null) 'error': error!,
      if (errorInfo != null) 'errorInfo': errorInfo!,
      if (errorType != null) 'errorType': errorType!,
      if (gceOperation != null) 'gceOperation': gceOperation!,
      if (producerInstanceId != null)
        'producerInstanceId': producerInstanceId!,
      if (pscConnectionId != null) 'pscConnectionId': pscConnectionId!,
      if (selectedSubnetwork != null)
        'selectedSubnetwork': selectedSubnetwork!,
      if (state != null) 'state': state!,
    };