toJson method

dynamic toJson()

Implementation

toJson() {
  Map map = {};
  map['ver'] = ver;
  map['appType'] = appType;
  if (caps.isNotEmpty) {
    map['caps'] = caps;
  }
  if (snList.isNotEmpty) {
    map['snList'] = snList.map((e) => e.toJson()).toList();
  }
  return map;
}