ResolverEndpoint.fromJson constructor
ResolverEndpoint.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ResolverEndpoint.fromJson(Map<String, dynamic> json) {
return ResolverEndpoint(
arn: json['Arn'] as String?,
creationTime: json['CreationTime'] as String?,
creatorRequestId: json['CreatorRequestId'] as String?,
direction: (json['Direction'] as String?)?.toResolverEndpointDirection(),
hostVPCId: json['HostVPCId'] as String?,
id: json['Id'] as String?,
ipAddressCount: json['IpAddressCount'] as int?,
modificationTime: json['ModificationTime'] as String?,
name: json['Name'] as String?,
securityGroupIds: (json['SecurityGroupIds'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
status: (json['Status'] as String?)?.toResolverEndpointStatus(),
statusMessage: json['StatusMessage'] as String?,
);
}