Network.fromJson constructor
Network.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Network.fromJson(Map<String, dynamic> json) {
return Network(
creationDate: timeStampFromJson(json['CreationDate']),
description: json['Description'] as String?,
framework: (json['Framework'] as String?)?.toFramework(),
frameworkAttributes: json['FrameworkAttributes'] != null
? NetworkFrameworkAttributes.fromJson(
json['FrameworkAttributes'] as Map<String, dynamic>)
: null,
frameworkVersion: json['FrameworkVersion'] as String?,
id: json['Id'] as String?,
name: json['Name'] as String?,
status: (json['Status'] as String?)?.toNetworkStatus(),
votingPolicy: json['VotingPolicy'] != null
? VotingPolicy.fromJson(json['VotingPolicy'] as Map<String, dynamic>)
: null,
vpcEndpointServiceName: json['VpcEndpointServiceName'] as String?,
);
}