toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': id,
    'email': email,
    'username': username,
    'password': password,
    'first_name': firstName,
    'last_name': lastName,
    'name': name,
  };
}