GetLogEventsResponse.fromJson constructor

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

Implementation

factory GetLogEventsResponse.fromJson(Map<String, dynamic> json) {
  return GetLogEventsResponse(
    events: (json['events'] as List?)
        ?.whereNotNull()
        .map((e) => OutputLogEvent.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextBackwardToken: json['nextBackwardToken'] as String?,
    nextForwardToken: json['nextForwardToken'] as String?,
  );
}