InfrastructureConfiguration.fromJson constructor
InfrastructureConfiguration.fromJson(
- Map<String, dynamic> json
)
Implementation
factory InfrastructureConfiguration.fromJson(Map<String, dynamic> json) {
return InfrastructureConfiguration(
arn: json['arn'] as String?,
dateCreated: json['dateCreated'] as String?,
dateUpdated: json['dateUpdated'] as String?,
description: json['description'] as String?,
instanceProfileName: json['instanceProfileName'] as String?,
instanceTypes: (json['instanceTypes'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
keyPair: json['keyPair'] as String?,
logging: json['logging'] != null
? Logging.fromJson(json['logging'] as Map<String, dynamic>)
: null,
name: json['name'] as String?,
resourceTags: (json['resourceTags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
securityGroupIds: (json['securityGroupIds'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
snsTopicArn: json['snsTopicArn'] as String?,
subnetId: json['subnetId'] as String?,
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
terminateInstanceOnFailure: json['terminateInstanceOnFailure'] as bool?,
);
}