toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => <String, Object?>{
  "id": id,
  "position": position.encode(),
  "text": text,
  "createdAt": createdAt.toIso8601String(),
  "note": note,
  "color": color,
};