toJson method

Map<String, dynamic> toJson()

Implementation

Map<String,dynamic> toJson() {
   return  {
     "tag" : tag,
     "name" :name,
     "roomId" :roomId,
     "doomId" :doomId,
     "location" :location,
     "state" : state,
     "token" : token
   };
}