DescribeEventsResponse.fromJson constructor

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

Implementation

factory DescribeEventsResponse.fromJson(Map<String, dynamic> json) {
  return DescribeEventsResponse(
    nextToken: json['NextToken'] as String?,
    serverEvents: (json['ServerEvents'] as List?)
        ?.whereNotNull()
        .map((e) => ServerEvent.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}