UpdateVpcLinkResponse.fromJson constructor

UpdateVpcLinkResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory UpdateVpcLinkResponse.fromJson(Map<String, dynamic> json) {
  return UpdateVpcLinkResponse(
    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(),
  );
}