toJson method
Implementation
Map<String, dynamic> toJson() {
final name = this.name;
final codecSettings = this.codecSettings;
final height = this.height;
final respondToAfd = this.respondToAfd;
final scalingBehavior = this.scalingBehavior;
final sharpness = this.sharpness;
final width = this.width;
return {
'name': name,
if (codecSettings != null) 'codecSettings': codecSettings,
if (height != null) 'height': height,
if (respondToAfd != null) 'respondToAfd': respondToAfd.toValue(),
if (scalingBehavior != null) 'scalingBehavior': scalingBehavior.toValue(),
if (sharpness != null) 'sharpness': sharpness,
if (width != null) 'width': width,
};
}