DescribeEventAggregatesResponse.fromJson constructor

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

Implementation

factory DescribeEventAggregatesResponse.fromJson(Map<String, dynamic> json) {
  return DescribeEventAggregatesResponse(
    eventAggregates: (json['eventAggregates'] as List?)
        ?.whereNotNull()
        .map((e) => EventAggregate.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['nextToken'] as String?,
  );
}