toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['messageType'] = messageType;
if (messageObj != null) {
data['messageObj'] = messageObj!.toJson();
}
return data;
}