ListCustomRoutingListenersResponse.fromJson constructor

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

Implementation

factory ListCustomRoutingListenersResponse.fromJson(
    Map<String, dynamic> json) {
  return ListCustomRoutingListenersResponse(
    listeners: (json['Listeners'] as List?)
        ?.whereNotNull()
        .map((e) => CustomRoutingListener.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}