Map<String, dynamic> toMap() { var map = <String, dynamic>{}; map["_id"] = id; map["name"] = name; map["username"] = username; return map; }