BatchedEvents.fromJson constructor

BatchedEvents.fromJson(
  1. List jsonList
)

Implementation

factory BatchedEvents.fromJson(List<dynamic> jsonList) {
  final json = listToMap(jsonList, type: type);
  return BatchedEvents(
    events: (json['events'] as List)
        .map((e) => ExtensionEvent.fromJson(e as List))
        .toList(),
  );
}