Colors.fromJson constructor
Colors.fromJson(
- Map json_
Implementation
Colors.fromJson(core.Map json_)
: this(
calendar: json_.containsKey('calendar')
? (json_['calendar'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
ColorDefinition.fromJson(
value as core.Map<core.String, core.dynamic>),
),
)
: null,
event: json_.containsKey('event')
? (json_['event'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
ColorDefinition.fromJson(
value as core.Map<core.String, core.dynamic>),
),
)
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
updated: json_.containsKey('updated')
? core.DateTime.parse(json_['updated'] as core.String)
: null,
);