Converts this user to JSON-like map data.
Map<String, dynamic> toJson() { return { 'id': id, 'username': username, }; }