GoogleCloudApigeeV1SecurityProfile.fromJson constructor

GoogleCloudApigeeV1SecurityProfile.fromJson(
  1. Map json_
)

Implementation

GoogleCloudApigeeV1SecurityProfile.fromJson(core.Map json_)
    : this(
        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) =>
                    GoogleCloudApigeeV1SecurityProfileEnvironment.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        maxScore: json_.containsKey('maxScore')
            ? json_['maxScore'] as core.int
            : null,
        minScore: json_.containsKey('minScore')
            ? json_['minScore'] as core.int
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        profileConfig: json_.containsKey('profileConfig')
            ? GoogleCloudApigeeV1ProfileConfig.fromJson(
                json_['profileConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        revisionCreateTime: json_.containsKey('revisionCreateTime')
            ? json_['revisionCreateTime'] as core.String
            : null,
        revisionId: json_.containsKey('revisionId')
            ? json_['revisionId'] as core.String
            : null,
        revisionPublishTime: json_.containsKey('revisionPublishTime')
            ? json_['revisionPublishTime'] as core.String
            : null,
        revisionUpdateTime: json_.containsKey('revisionUpdateTime')
            ? json_['revisionUpdateTime'] as core.String
            : null,
        scoringConfigs: json_.containsKey('scoringConfigs')
            ? (json_['scoringConfigs'] as core.List)
                .map((value) =>
                    GoogleCloudApigeeV1SecurityProfileScoringConfig.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );