DehydratedDeviceEvents.fromJson constructor

DehydratedDeviceEvents.fromJson(
  1. Map<String, dynamic> json
)

Implementation

DehydratedDeviceEvents.fromJson(Map<String, dynamic> json)
    : nextBatch = json['next_batch'] as String?,
      events = json
          .tryGetList<Map<String, dynamic>>('events')
          ?.map((i) => ToDeviceEvent.fromJson(i))
          .toList();