toJson method

Map<String, dynamic> toJson()

Converts this AttendeeAvailability object to a JSON object.

The 'availability' key maps to a string representing the availability status. The 'attendee' key maps to a JSON object that represents the Attendee object. If the Attendee object is null, the 'attendee' key maps to null.

Implementation

Map<String, dynamic> toJson() {
  return {
    'availability': availability,
    'attendee': attendee?.toJson(),
  };
}