toMap method
Implementation
Map<String, dynamic> toMap() {
return {
"string": this.string,
"backgroundColor": this.backgroundColor?.toHex(),
"baselineOffset": this.baselineOffset,
"expansion": this.expansion,
"foregroundColor": this.foregroundColor?.toHex(),
"kern": this.kern,
"ligature": this.ligature,
"obliqueness": this.obliqueness,
"strikethroughColor": this.strikethroughColor?.toHex(),
"strikethroughStyle": this.strikethroughStyle?.toValue(),
"strokeColor": this.strokeColor?.toHex(),
"strokeWidth": this.strokeWidth,
"textEffect": this.textEffect?.toValue(),
"underlineColor": this.underlineColor?.toHex(),
"underlineStyle": this.underlineStyle?.toValue(),
};
}