Node.fromJson constructor
Implementation
factory Node.fromJson(Map<String, dynamic> json) {
return Node(
availabilityZone: json['AvailabilityZone'] as String?,
creationDate: timeStampFromJson(json['CreationDate']),
frameworkAttributes: json['FrameworkAttributes'] != null
? NodeFrameworkAttributes.fromJson(
json['FrameworkAttributes'] as Map<String, dynamic>)
: null,
id: json['Id'] as String?,
instanceType: json['InstanceType'] as String?,
logPublishingConfiguration: json['LogPublishingConfiguration'] != null
? NodeLogPublishingConfiguration.fromJson(
json['LogPublishingConfiguration'] as Map<String, dynamic>)
: null,
memberId: json['MemberId'] as String?,
networkId: json['NetworkId'] as String?,
stateDB: (json['StateDB'] as String?)?.toStateDBType(),
status: (json['Status'] as String?)?.toNodeStatus(),
);
}