GetNodeForLocationResult.fromJson constructor

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

Implementation

factory GetNodeForLocationResult.fromJson(Map<String, dynamic> json) {
  return GetNodeForLocationResult(
    backendNodeId: BackendNodeId.fromJson(json['backendNodeId'] as int),
    frameId: page.FrameId.fromJson(json['frameId'] as String),
    nodeId: json.containsKey('nodeId')
        ? NodeId.fromJson(json['nodeId'] as int)
        : null,
  );
}