toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    "@type": CONSTRUCTOR,
    "type": this.type,
    "photo": this.photo == null ? null : this.photo.toJson(),
    "width": this.width,
    "height": this.height,
    "progressive_sizes": this.progressiveSizes.map((i) => i).toList(),
  };
}