EventUpdateResponse.fromJson constructor
EventUpdateResponse.fromJson(
- Map json_
Implementation
EventUpdateResponse.fromJson(core.Map json_)
: this(
batchFailures: json_.containsKey('batchFailures')
? (json_['batchFailures'] as core.List)
.map((value) => EventBatchRecordFailure.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
eventFailures: json_.containsKey('eventFailures')
? (json_['eventFailures'] as core.List)
.map((value) => EventRecordFailure.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
playerEvents: json_.containsKey('playerEvents')
? (json_['playerEvents'] as core.List)
.map((value) => PlayerEvent.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);