toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'pid': pid,
    'dur': _dur[pid] ?? 10,
    'protocol': _datas.map((e) => e.toJson()).toList(),
    'desc': clingProtocolName(pid)
  };
}