toJson method
Converts this object to a JSON map.
Implementation
Map<String, dynamic> toJson() {
return {
'user_id': userId,
'first_name': firstName,
'last_name': lastName,
'username': username,
'photo': photo?.map((size) => size.toJson()).toList(),
};
}