toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
      'id': id,
      if (title != null) 'title': title,
      if (start != null) 'start': start,
      if (description != null) 'description': description,
    };