DescribeEventTypesResponse.fromJson constructor

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

Implementation

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