ResourceDetails.fromJson constructor
ResourceDetails.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ResourceDetails.fromJson(Map<String, dynamic> json) {
return ResourceDetails(
awsApiGatewayRestApi: json['AwsApiGatewayRestApi'] != null
? AwsApiGatewayRestApiDetails.fromJson(
json['AwsApiGatewayRestApi'] as Map<String, dynamic>)
: null,
awsApiGatewayStage: json['AwsApiGatewayStage'] != null
? AwsApiGatewayStageDetails.fromJson(
json['AwsApiGatewayStage'] as Map<String, dynamic>)
: null,
awsApiGatewayV2Api: json['AwsApiGatewayV2Api'] != null
? AwsApiGatewayV2ApiDetails.fromJson(
json['AwsApiGatewayV2Api'] as Map<String, dynamic>)
: null,
awsApiGatewayV2Stage: json['AwsApiGatewayV2Stage'] != null
? AwsApiGatewayV2StageDetails.fromJson(
json['AwsApiGatewayV2Stage'] as Map<String, dynamic>)
: null,
awsAutoScalingAutoScalingGroup: json['AwsAutoScalingAutoScalingGroup'] !=
null
? AwsAutoScalingAutoScalingGroupDetails.fromJson(
json['AwsAutoScalingAutoScalingGroup'] as Map<String, dynamic>)
: null,
awsCertificateManagerCertificate:
json['AwsCertificateManagerCertificate'] != null
? AwsCertificateManagerCertificateDetails.fromJson(
json['AwsCertificateManagerCertificate']
as Map<String, dynamic>)
: null,
awsCloudFrontDistribution: json['AwsCloudFrontDistribution'] != null
? AwsCloudFrontDistributionDetails.fromJson(
json['AwsCloudFrontDistribution'] as Map<String, dynamic>)
: null,
awsCloudTrailTrail: json['AwsCloudTrailTrail'] != null
? AwsCloudTrailTrailDetails.fromJson(
json['AwsCloudTrailTrail'] as Map<String, dynamic>)
: null,
awsCodeBuildProject: json['AwsCodeBuildProject'] != null
? AwsCodeBuildProjectDetails.fromJson(
json['AwsCodeBuildProject'] as Map<String, dynamic>)
: null,
awsDynamoDbTable: json['AwsDynamoDbTable'] != null
? AwsDynamoDbTableDetails.fromJson(
json['AwsDynamoDbTable'] as Map<String, dynamic>)
: null,
awsEc2Eip: json['AwsEc2Eip'] != null
? AwsEc2EipDetails.fromJson(json['AwsEc2Eip'] as Map<String, dynamic>)
: null,
awsEc2Instance: json['AwsEc2Instance'] != null
? AwsEc2InstanceDetails.fromJson(
json['AwsEc2Instance'] as Map<String, dynamic>)
: null,
awsEc2NetworkInterface: json['AwsEc2NetworkInterface'] != null
? AwsEc2NetworkInterfaceDetails.fromJson(
json['AwsEc2NetworkInterface'] as Map<String, dynamic>)
: null,
awsEc2SecurityGroup: json['AwsEc2SecurityGroup'] != null
? AwsEc2SecurityGroupDetails.fromJson(
json['AwsEc2SecurityGroup'] as Map<String, dynamic>)
: null,
awsEc2Volume: json['AwsEc2Volume'] != null
? AwsEc2VolumeDetails.fromJson(
json['AwsEc2Volume'] as Map<String, dynamic>)
: null,
awsEc2Vpc: json['AwsEc2Vpc'] != null
? AwsEc2VpcDetails.fromJson(json['AwsEc2Vpc'] as Map<String, dynamic>)
: null,
awsElasticsearchDomain: json['AwsElasticsearchDomain'] != null
? AwsElasticsearchDomainDetails.fromJson(
json['AwsElasticsearchDomain'] as Map<String, dynamic>)
: null,
awsElbLoadBalancer: json['AwsElbLoadBalancer'] != null
? AwsElbLoadBalancerDetails.fromJson(
json['AwsElbLoadBalancer'] as Map<String, dynamic>)
: null,
awsElbv2LoadBalancer: json['AwsElbv2LoadBalancer'] != null
? AwsElbv2LoadBalancerDetails.fromJson(
json['AwsElbv2LoadBalancer'] as Map<String, dynamic>)
: null,
awsIamAccessKey: json['AwsIamAccessKey'] != null
? AwsIamAccessKeyDetails.fromJson(
json['AwsIamAccessKey'] as Map<String, dynamic>)
: null,
awsIamGroup: json['AwsIamGroup'] != null
? AwsIamGroupDetails.fromJson(
json['AwsIamGroup'] as Map<String, dynamic>)
: null,
awsIamPolicy: json['AwsIamPolicy'] != null
? AwsIamPolicyDetails.fromJson(
json['AwsIamPolicy'] as Map<String, dynamic>)
: null,
awsIamRole: json['AwsIamRole'] != null
? AwsIamRoleDetails.fromJson(
json['AwsIamRole'] as Map<String, dynamic>)
: null,
awsIamUser: json['AwsIamUser'] != null
? AwsIamUserDetails.fromJson(
json['AwsIamUser'] as Map<String, dynamic>)
: null,
awsKmsKey: json['AwsKmsKey'] != null
? AwsKmsKeyDetails.fromJson(json['AwsKmsKey'] as Map<String, dynamic>)
: null,
awsLambdaFunction: json['AwsLambdaFunction'] != null
? AwsLambdaFunctionDetails.fromJson(
json['AwsLambdaFunction'] as Map<String, dynamic>)
: null,
awsLambdaLayerVersion: json['AwsLambdaLayerVersion'] != null
? AwsLambdaLayerVersionDetails.fromJson(
json['AwsLambdaLayerVersion'] as Map<String, dynamic>)
: null,
awsRdsDbCluster: json['AwsRdsDbCluster'] != null
? AwsRdsDbClusterDetails.fromJson(
json['AwsRdsDbCluster'] as Map<String, dynamic>)
: null,
awsRdsDbClusterSnapshot: json['AwsRdsDbClusterSnapshot'] != null
? AwsRdsDbClusterSnapshotDetails.fromJson(
json['AwsRdsDbClusterSnapshot'] as Map<String, dynamic>)
: null,
awsRdsDbInstance: json['AwsRdsDbInstance'] != null
? AwsRdsDbInstanceDetails.fromJson(
json['AwsRdsDbInstance'] as Map<String, dynamic>)
: null,
awsRdsDbSnapshot: json['AwsRdsDbSnapshot'] != null
? AwsRdsDbSnapshotDetails.fromJson(
json['AwsRdsDbSnapshot'] as Map<String, dynamic>)
: null,
awsRedshiftCluster: json['AwsRedshiftCluster'] != null
? AwsRedshiftClusterDetails.fromJson(
json['AwsRedshiftCluster'] as Map<String, dynamic>)
: null,
awsS3Bucket: json['AwsS3Bucket'] != null
? AwsS3BucketDetails.fromJson(
json['AwsS3Bucket'] as Map<String, dynamic>)
: null,
awsS3Object: json['AwsS3Object'] != null
? AwsS3ObjectDetails.fromJson(
json['AwsS3Object'] as Map<String, dynamic>)
: null,
awsSecretsManagerSecret: json['AwsSecretsManagerSecret'] != null
? AwsSecretsManagerSecretDetails.fromJson(
json['AwsSecretsManagerSecret'] as Map<String, dynamic>)
: null,
awsSnsTopic: json['AwsSnsTopic'] != null
? AwsSnsTopicDetails.fromJson(
json['AwsSnsTopic'] as Map<String, dynamic>)
: null,
awsSqsQueue: json['AwsSqsQueue'] != null
? AwsSqsQueueDetails.fromJson(
json['AwsSqsQueue'] as Map<String, dynamic>)
: null,
awsWafWebAcl: json['AwsWafWebAcl'] != null
? AwsWafWebAclDetails.fromJson(
json['AwsWafWebAcl'] as Map<String, dynamic>)
: null,
container: json['Container'] != null
? ContainerDetails.fromJson(json['Container'] as Map<String, dynamic>)
: null,
other: (json['Other'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
);
}