Event.fromJson constructor
Event.fromJson(
- Map _json
Implementation
Event.fromJson(core.Map _json)
: this(
count: _json.containsKey('count') ? _json['count'] as core.int : null,
name: _json.containsKey('name') ? _json['name'] as core.String : null,
params: _json.containsKey('params')
? (_json['params'] as core.List)
.map((value) => EventParam.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
previousTimestampMillis: _json.containsKey('previousTimestampMillis')
? _json['previousTimestampMillis'] as core.String
: null,
timestampMillis: _json.containsKey('timestampMillis')
? _json['timestampMillis'] as core.String
: null,
);