Converts this instance into a JSON-friendly representation.
Map<String, dynamic> toJson() { return {'token': token, 'data': data}; }