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