Map<String, dynamic> toJson() { var data = <String, dynamic>{}; data['pathFile'] = pathFile; data['from'] = from; data['to'] = to; return data; }