toJson method

Map<String, dynamic> toJson()

Serialize to a JSON-compatible map.

Implementation

Map<String, dynamic> toJson() => {
      'id': id,
      'label': label,
      'features': features,
      'createdAt': createdAt.toIso8601String(),
    };