ConsumerPscConfig.fromJson constructor

ConsumerPscConfig.fromJson(
  1. Map json_
)

Implementation

ConsumerPscConfig.fromJson(core.Map json_)
    : this(
        disableGlobalAccess: json_.containsKey('disableGlobalAccess')
            ? json_['disableGlobalAccess'] as core.bool
            : 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,
        serviceAttachmentIpAddressMap:
            json_.containsKey('serviceAttachmentIpAddressMap')
                ? (json_['serviceAttachmentIpAddressMap']
                        as core.Map<core.String, core.dynamic>)
                    .map(
                    (key, value) => core.MapEntry(
                      key,
                      value as core.String,
                    ),
                  )
                : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
      );