VpcLink.fromJson constructor
VpcLink.fromJson(
- Map<String, dynamic> json
)
Implementation
factory VpcLink.fromJson(Map<String, dynamic> json) {
return VpcLink(
name: json['name'] as String,
securityGroupIds: (json['securityGroupIds'] as List)
.whereNotNull()
.map((e) => e as String)
.toList(),
subnetIds: (json['subnetIds'] as List)
.whereNotNull()
.map((e) => e as String)
.toList(),
vpcLinkId: json['vpcLinkId'] as String,
createdDate: timeStampFromJson(json['createdDate']),
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
vpcLinkStatus: (json['vpcLinkStatus'] as String?)?.toVpcLinkStatus(),
vpcLinkStatusMessage: json['vpcLinkStatusMessage'] as String?,
vpcLinkVersion: (json['vpcLinkVersion'] as String?)?.toVpcLinkVersion(),
);
}