FreeBusyResponse.fromJson constructor
FreeBusyResponse.fromJson(
- Map json_
Implementation
FreeBusyResponse.fromJson(core.Map json_)
: this(
calendars: json_.containsKey('calendars')
? (json_['calendars'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
FreeBusyCalendar.fromJson(
value as core.Map<core.String, core.dynamic>),
),
)
: null,
groups: json_.containsKey('groups')
? (json_['groups'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
FreeBusyGroup.fromJson(
value as core.Map<core.String, core.dynamic>),
),
)
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
timeMax: json_.containsKey('timeMax')
? core.DateTime.parse(json_['timeMax'] as core.String)
: null,
timeMin: json_.containsKey('timeMin')
? core.DateTime.parse(json_['timeMin'] as core.String)
: null,
);