PscConfig.fromJson constructor

PscConfig.fromJson(
  1. Map json_
)

Implementation

PscConfig.fromJson(core.Map json_)
    : this(
        allowedVpcs: json_.containsKey('allowedVpcs')
            ? (json_['allowedVpcs'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        lookerServiceAttachmentUri:
            json_.containsKey('lookerServiceAttachmentUri')
                ? json_['lookerServiceAttachmentUri'] as core.String
                : null,
        serviceAttachments: json_.containsKey('serviceAttachments')
            ? (json_['serviceAttachments'] as core.List)
                .map((value) => ServiceAttachment.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );