toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'elementType'] = this.elementType;
json[r'content'] = this.content;
if (this.x != null) {
json[r'x'] = this.x;
} else {
json[r'x'] = null;
}
if (this.y != null) {
json[r'y'] = this.y;
} else {
json[r'y'] = null;
}
if (this.width != null) {
json[r'width'] = this.width;
} else {
json[r'width'] = null;
}
if (this.height != null) {
json[r'height'] = this.height;
} else {
json[r'height'] = null;
}
if (this.rotation != null) {
json[r'rotation'] = this.rotation;
} else {
json[r'rotation'] = null;
}
if (this.zIndex != null) {
json[r'zIndex'] = this.zIndex;
} else {
json[r'zIndex'] = null;
}
return json;
}