toJson method
Implementation
Map<String, dynamic> toJson() {
final duration = this.duration;
final fadeIn = this.fadeIn;
final fadeOut = this.fadeOut;
final height = this.height;
final imageInserterInput = this.imageInserterInput;
final imageX = this.imageX;
final imageY = this.imageY;
final layer = this.layer;
final opacity = this.opacity;
final startTime = this.startTime;
final width = this.width;
return {
if (duration != null) 'duration': duration,
if (fadeIn != null) 'fadeIn': fadeIn,
if (fadeOut != null) 'fadeOut': fadeOut,
if (height != null) 'height': height,
if (imageInserterInput != null) 'imageInserterInput': imageInserterInput,
if (imageX != null) 'imageX': imageX,
if (imageY != null) 'imageY': imageY,
if (layer != null) 'layer': layer,
if (opacity != null) 'opacity': opacity,
if (startTime != null) 'startTime': startTime,
if (width != null) 'width': width,
};
}