toJson method
Implementation
Map<String, dynamic> toJson() {
final fontSize = this.fontSize;
final position = this.position;
final prefix = this.prefix;
return {
if (fontSize != null) 'fontSize': fontSize,
if (position != null) 'position': position.toValue(),
if (prefix != null) 'prefix': prefix,
};
}