toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => <String, dynamic>{
      'year': year,
      'month': month,
      'day': day,
      'label': _eventLabelToString[label],
      'customLabel': customLabel,
    };