Discovery.fromProto constructor

Discovery.fromProto(
  1. Discovery proto
)

Implementation

factory Discovery.fromProto(rpb.Discovery proto) {
  return Discovery(
    subtype: proto.query.subtype,
    model: proto.query.model,
    results: proto.results.toMap(),
  );
}