toJson method

dynamic toJson()
override

Converts the WpUser to a JSON object

Implementation

toJson() => {
      'id': id,
      'token': token,
      'email': email,
      'username': username,
      'first_name': firstName,
      'last_name': lastName,
      'avatar': avatar,
      'created_at': createdAt
    };