toJson method

  1. @override
Map<String, dynamic> toJson()
override

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,
  };
}