GoogleCloudApigeeV1Deployment.fromJson constructor

GoogleCloudApigeeV1Deployment.fromJson(
  1. Map json_
)

Implementation

GoogleCloudApigeeV1Deployment.fromJson(core.Map json_)
    : this(
        apiProxy: json_.containsKey('apiProxy')
            ? json_['apiProxy'] as core.String
            : null,
        deployStartTime: json_.containsKey('deployStartTime')
            ? json_['deployStartTime'] as core.String
            : null,
        environment: json_.containsKey('environment')
            ? json_['environment'] as core.String
            : null,
        errors: json_.containsKey('errors')
            ? (json_['errors'] as core.List)
                .map((value) => GoogleRpcStatus.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        instances: json_.containsKey('instances')
            ? (json_['instances'] as core.List)
                .map((value) =>
                    GoogleCloudApigeeV1InstanceDeploymentStatus.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        pods: json_.containsKey('pods')
            ? (json_['pods'] as core.List)
                .map((value) => GoogleCloudApigeeV1PodStatus.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        proxyDeploymentType: json_.containsKey('proxyDeploymentType')
            ? json_['proxyDeploymentType'] as core.String
            : null,
        revision: json_.containsKey('revision')
            ? json_['revision'] as core.String
            : null,
        routeConflicts: json_.containsKey('routeConflicts')
            ? (json_['routeConflicts'] as core.List)
                .map((value) =>
                    GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        serviceAccount: json_.containsKey('serviceAccount')
            ? json_['serviceAccount'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
      );