toMap method

Map<String, dynamic> toMap()

Implementation

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