GlobalNetwork.fromJson constructor
GlobalNetwork.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GlobalNetwork.fromJson(Map<String, dynamic> json) {
return GlobalNetwork(
createdAt: timeStampFromJson(json['CreatedAt']),
description: json['Description'] as String?,
globalNetworkArn: json['GlobalNetworkArn'] as String?,
globalNetworkId: json['GlobalNetworkId'] as String?,
state: (json['State'] as String?)?.toGlobalNetworkState(),
tags: (json['Tags'] as List?)
?.whereNotNull()
.map((e) => Tag.fromJson(e as Map<String, dynamic>))
.toList(),
);
}