toJson method
Returns the json representation of this model in the unsplash api.
Implementation
@override
Map<String, dynamic> toJson() {
return <String, dynamic>{
'self': self.toString(),
'html': html.toString(),
'photos': photos.toString(),
'likes': likes.toString(),
'portfolio': portfolio.toString(),
'followers': followers.toString(),
'following': following.toString(),
};
}