ShadowRootPushedEvent.fromJson constructor

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

Implementation

factory ShadowRootPushedEvent.fromJson(Map<String, dynamic> json) {
  return ShadowRootPushedEvent(
    hostId: NodeId.fromJson(json['hostId'] as int),
    root: Node.fromJson(json['root'] as Map<String, dynamic>),
  );
}