toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    if (url != null) 'url': url,
    if (token != null) 'token': token,
    if (photos != null) 'photos': photos,
  };
}