GoogleCloudApigeeV1ApiProxy.fromJson constructor

GoogleCloudApigeeV1ApiProxy.fromJson(
  1. Map json_
)

Implementation

GoogleCloudApigeeV1ApiProxy.fromJson(core.Map json_)
    : this(
        apiProxyType: json_.containsKey('apiProxyType')
            ? json_['apiProxyType'] as core.String
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        latestRevisionId: json_.containsKey('latestRevisionId')
            ? json_['latestRevisionId'] as core.String
            : null,
        metaData: json_.containsKey('metaData')
            ? GoogleCloudApigeeV1EntityMetadata.fromJson(
                json_['metaData'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        readOnly: json_.containsKey('readOnly')
            ? json_['readOnly'] as core.bool
            : null,
        revision: json_.containsKey('revision')
            ? (json_['revision'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );