toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['token'] = token;
  data['username'] = username;
  data['user_id'] = userId;
  data['email'] = email;
  data['image'] = image;
  return data;
}