toJson method
Implementation
Map<String, dynamic> toJson() {
final aspectRatio = this.aspectRatio;
final format = this.format;
final interval = this.interval;
final maxHeight = this.maxHeight;
final maxWidth = this.maxWidth;
final paddingPolicy = this.paddingPolicy;
final resolution = this.resolution;
final sizingPolicy = this.sizingPolicy;
return {
if (aspectRatio != null) 'AspectRatio': aspectRatio,
if (format != null) 'Format': format,
if (interval != null) 'Interval': interval,
if (maxHeight != null) 'MaxHeight': maxHeight,
if (maxWidth != null) 'MaxWidth': maxWidth,
if (paddingPolicy != null) 'PaddingPolicy': paddingPolicy,
if (resolution != null) 'Resolution': resolution,
if (sizingPolicy != null) 'SizingPolicy': sizingPolicy,
};
}