Map<String, dynamic> toJson() { final Map<String, dynamic> data = new Map<String, dynamic>(); data['main_text'] = this.mainText; data['secondary_text'] = this.secondaryText; return data; }