ConsumerPscConnection.fromJson constructor

ConsumerPscConnection.fromJson(
  1. Map json_
)

Implementation

ConsumerPscConnection.fromJson(core.Map json_)
    : this(
        error: json_.containsKey('error')
            ? GoogleRpcStatus.fromJson(
                json_['error'] as core.Map<core.String, core.dynamic>)
            : null,
        errorInfo: json_.containsKey('errorInfo')
            ? GoogleRpcErrorInfo.fromJson(
                json_['errorInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        errorType: json_.containsKey('errorType')
            ? json_['errorType'] as core.String
            : null,
        forwardingRule: json_.containsKey('forwardingRule')
            ? json_['forwardingRule'] as core.String
            : null,
        gceOperation: json_.containsKey('gceOperation')
            ? json_['gceOperation'] as core.String
            : null,
        ip: json_.containsKey('ip') ? json_['ip'] as core.String : null,
        network: json_.containsKey('network')
            ? json_['network'] as core.String
            : null,
        producerInstanceId: json_.containsKey('producerInstanceId')
            ? json_['producerInstanceId'] as core.String
            : null,
        project: json_.containsKey('project')
            ? json_['project'] as core.String
            : null,
        pscConnectionId: json_.containsKey('pscConnectionId')
            ? json_['pscConnectionId'] as core.String
            : null,
        selectedSubnetwork: json_.containsKey('selectedSubnetwork')
            ? json_['selectedSubnetwork'] as core.String
            : null,
        serviceAttachmentUri: json_.containsKey('serviceAttachmentUri')
            ? json_['serviceAttachmentUri'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
      );