Event.fromJson constructor
Event.fromJson(
- Map json_
Implementation
Event.fromJson(core.Map json_)
: this(
date: json_.containsKey('date')
? Date.fromJson(
json_['date'] as core.Map<core.String, core.dynamic>)
: null,
formattedType: json_.containsKey('formattedType')
? json_['formattedType'] as core.String
: null,
metadata: json_.containsKey('metadata')
? FieldMetadata.fromJson(
json_['metadata'] as core.Map<core.String, core.dynamic>)
: null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
);