toJson method
Returns the json representation of this model in the unsplash api.
Implementation
@override
Map<String, dynamic> toJson() {
return <String, dynamic>{
'title': title,
'primary': primary,
'slug': slug,
'link': link.toString(),
};
}