toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'text': text,
'link': link,
'target': target,
'subtext': subtext,
'sublink': sublink,
'subtarget': subtarget,
'textAlign': textAlign,
'textVerticalAlign': textVerticalAlign,
'textBaseline': textBaseline,
'subtextAlign': subtextAlign,
'subtextVerticalAlign': subtextVerticalAlign,
'subtextBaseline': subtextBaseline,
'backgroundColor': backgroundColor,
'borderColor': borderColor,
'borderWidth': borderWidth,
'borderRadius': borderRadius,
'padding': padding,
'itemGap': itemGap,
'textStyle': textStyle.toJson(),
'subtextStyle': subtextStyle.toJson(),
};
}