GoogleCloudApigeeV1ApiProduct.fromJson constructor

GoogleCloudApigeeV1ApiProduct.fromJson(
  1. Map json_
)

Implementation

GoogleCloudApigeeV1ApiProduct.fromJson(core.Map json_)
    : this(
        apiResources: json_.containsKey('apiResources')
            ? (json_['apiResources'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        approvalType: json_.containsKey('approvalType')
            ? json_['approvalType'] as core.String
            : null,
        attributes: json_.containsKey('attributes')
            ? (json_['attributes'] as core.List)
                .map((value) => GoogleCloudApigeeV1Attribute.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        createdAt: json_.containsKey('createdAt')
            ? json_['createdAt'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        environments: json_.containsKey('environments')
            ? (json_['environments'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        graphqlOperationGroup: json_.containsKey('graphqlOperationGroup')
            ? GoogleCloudApigeeV1GraphQLOperationGroup.fromJson(
                json_['graphqlOperationGroup']
                    as core.Map<core.String, core.dynamic>)
            : null,
        grpcOperationGroup: json_.containsKey('grpcOperationGroup')
            ? GoogleCloudApigeeV1GrpcOperationGroup.fromJson(
                json_['grpcOperationGroup']
                    as core.Map<core.String, core.dynamic>)
            : null,
        lastModifiedAt: json_.containsKey('lastModifiedAt')
            ? json_['lastModifiedAt'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        operationGroup: json_.containsKey('operationGroup')
            ? GoogleCloudApigeeV1OperationGroup.fromJson(
                json_['operationGroup']
                    as core.Map<core.String, core.dynamic>)
            : null,
        proxies: json_.containsKey('proxies')
            ? (json_['proxies'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        quota:
            json_.containsKey('quota') ? json_['quota'] as core.String : null,
        quotaCounterScope: json_.containsKey('quotaCounterScope')
            ? json_['quotaCounterScope'] as core.String
            : null,
        quotaInterval: json_.containsKey('quotaInterval')
            ? json_['quotaInterval'] as core.String
            : null,
        quotaTimeUnit: json_.containsKey('quotaTimeUnit')
            ? json_['quotaTimeUnit'] as core.String
            : null,
        scopes: json_.containsKey('scopes')
            ? (json_['scopes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );