ChildNodeInsertedEvent.fromJson constructor

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

Implementation

factory ChildNodeInsertedEvent.fromJson(Map<String, dynamic> json) {
  return ChildNodeInsertedEvent(
    parentNodeId: NodeId.fromJson(json['parentNodeId'] as int),
    previousNodeId: NodeId.fromJson(json['previousNodeId'] as int),
    node: Node.fromJson(json['node'] as Map<String, dynamic>),
  );
}