toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = Map<String, dynamic>();
  data['id'] = this.userId;
  data['user_token'] = this.userToken;
  data['expiry'] = this.expiry;
  data['email'] = this.email;
  data['username'] = this.username;
  data['first_name'] = this.firstName;
  data['last_name'] = this.lastName;
  data['avatar'] = this.avatar;
  data['created_at'] = this.createdAt;
  return data;
}