toJson method

Map toJson()

Implementation

Map toJson() => {
      'n': n,
      'f': f,
      'c': c.map((e) {
        if (e is Service) {
          return e.toJson();
        } else {
          return e;
        }
      }).toList(),
      'a': a,
      'al': al,
      'p': p,
      'pr': pr,
      'ft': ft,
      'q': q?.toJson() ?? {}
    };