DistributedNodesUpdatedEvent.fromJson constructor

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

Implementation

factory DistributedNodesUpdatedEvent.fromJson(Map<String, dynamic> json) {
  return DistributedNodesUpdatedEvent(
    insertionPointId: NodeId.fromJson(json['insertionPointId'] as int),
    distributedNodes: (json['distributedNodes'] as List)
        .map((e) => BackendNode.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}