toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  var data = <String, dynamic>{};
  data['aspect_ratio'] = aspectRatio;
  data['duration_millis'] = durationMillis;
  if (variants != null) {
    data['variants'] = variants.map((v) => v.toJson()).toList();
  }
  return data;
}