CreateVpcLinkResponse.fromJson constructor
CreateVpcLinkResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CreateVpcLinkResponse.fromJson(Map<String, dynamic> json) {
return CreateVpcLinkResponse(
createdDate: timeStampFromJson(json['createdDate']),
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(),
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
vpcLinkId: json['vpcLinkId'] as String?,
vpcLinkStatus: (json['vpcLinkStatus'] as String?)?.toVpcLinkStatus(),
vpcLinkStatusMessage: json['vpcLinkStatusMessage'] as String?,
vpcLinkVersion: (json['vpcLinkVersion'] as String?)?.toVpcLinkVersion(),
);
}