toJson method
Implementation
Map<String, Object?> toJson() {
var background = this.background;
var backgroundAttachment = this.backgroundAttachment;
var backgroundBlendMode = this.backgroundBlendMode;
var backgroundClip = this.backgroundClip;
var backgroundColor = this.backgroundColor;
var backgroundImage = this.backgroundImage;
var backgroundOrigin = this.backgroundOrigin;
var backgroundPosition = this.backgroundPosition;
var backgroundRepeat = this.backgroundRepeat;
var backgroundSize = this.backgroundSize;
var padding = this.padding;
var borderRadius = this.borderRadius;
final json = <String, Object?>{};
json[r'background'] = background;
if (backgroundAttachment != null) {
json[r'backgroundAttachment'] = backgroundAttachment;
}
if (backgroundBlendMode != null) {
json[r'backgroundBlendMode'] = backgroundBlendMode;
}
if (backgroundClip != null) {
json[r'backgroundClip'] = backgroundClip;
}
json[r'backgroundColor'] = backgroundColor;
json[r'backgroundImage'] = backgroundImage;
if (backgroundOrigin != null) {
json[r'backgroundOrigin'] = backgroundOrigin;
}
if (backgroundPosition != null) {
json[r'backgroundPosition'] = backgroundPosition;
}
if (backgroundRepeat != null) {
json[r'backgroundRepeat'] = backgroundRepeat;
}
json[r'backgroundSize'] = backgroundSize;
json[r'padding'] = padding;
json[r'borderRadius'] = borderRadius;
return json;
}