toJson method

Map<String, dynamic> toJson()

Converts the instance to JSON parsable map

Implementation

Map<String, dynamic> toJson() {
  return {'text': text};
}