VpcLink.fromJson constructor
VpcLink.fromJson(
- Map<String, dynamic> json
)
Implementation
factory VpcLink.fromJson(Map<String, dynamic> json) {
return VpcLink(
description: json['description'] as String?,
id: json['id'] as String?,
name: json['name'] as String?,
status: (json['status'] as String?)?.toVpcLinkStatus(),
statusMessage: json['statusMessage'] as String?,
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
targetArns: (json['targetArns'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
);
}