mirrored_repositories/flutter_a_z/lib
class Message{
  String idUser;
  String msg;
  String urlImg;
  String type;
  String date;

  Message();

  Map<String, dynamic> toMap(){
    Map<String, dynamic> map = {
      "idUser" : this.idUser,
      "msg"    : this.msg,
      "urlImg" : this.urlImg,
      "type"   : this.type,
      "date"   : this.date
    };
    return map;
  }
}