toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  "messages": List<dynamic>.from(messages.map((x) => x.toJson())),
};