to JSON mapper for string conversion
Map<String, dynamic> toJson() { return {'data': this.data, 'version': this.version}; }