toJson method
Implementation
@override
Map<String, dynamic> toJson() {
return {
'id': id,
'type': type.name,
'yPosition': yPosition,
'centerX': centerX,
'priceValue': priceValue,
'color': color.value,
'strokeWidth': strokeWidth,
'isVisible': isVisible,
'createTime': createTime.millisecondsSinceEpoch,
};
}