AttendeeAvailability.fromJson constructor
Creates a new instance of AttendeeAvailability
from a JSON object.
The JSON object should contain the keys 'availability' and 'attendee'.
The 'availability' key maps to a string representing the availability status.
The 'attendee' key maps to a JSON object that can be converted to an Attendee
object.
Implementation
factory AttendeeAvailability.fromJson(Map<String, dynamic> json) {
return AttendeeAvailability(
availability: json['availability'],
attendee:
json['attendee'] != null ? Attendee.fromJson(json['attendee']) : null,
);
}