Converts the object into a Json encodable map.
@override JsonMap toMap() => { 'id': id, 'username': username, 'email': email, }.compact();