toJson method

Map<String, dynamic> toJson()

Transforms this picture data object to a Map.

This is used mostly internally by this library.

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['height'] = height;
  data['is_silhouette'] = isSilhouette;
  data['url'] = url;
  data['width'] = width;
  return data;
}