toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    if (messageId != null) 'message_id': messageId,
    'text': text,
    'user': user,
  };
}