toMap method
Implementation
@override
Map<String, dynamic> toMap() {
return {
'text': text,
'textColor': textColor.jsonValue,
'textAlign': textAlign.toString(),
'fontFamily': fontFamily.toString(),
'isLeftIconTappable': isLeftIconTappable,
'leftIcon': leftIcon?.toMap(),
'isRightIconTappable': isRightIconTappable,
'rightIcon': rightIcon?.toMap(),
'textSize': textSize,
};
}