MeetingTimeSuggestionsResult.fromJson constructor

MeetingTimeSuggestionsResult.fromJson(
  1. Map<String, dynamic> json
)

Creates a new instance of MeetingTimeSuggestionsResult from a JSON object.

The JSON object should contain keys that correspond to the parameters of MeetingTimeSuggestionsResult.

Implementation

factory MeetingTimeSuggestionsResult.fromJson(Map<String, dynamic> json) {
  return MeetingTimeSuggestionsResult(
    context: json['@odata.context'],
    emptySuggestionsReason: json['emptySuggestionsReason'],
    meetingTimeSuggestions: json['meetingTimeSuggestions'] != null
        ? (json['meetingTimeSuggestions'] as List)
            .map((i) => MeetingTimeSuggestion.fromJson(i))
            .toList()
        : null,
  );
}