ListEventSourcesResponse.fromJson constructor

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

Implementation

factory ListEventSourcesResponse.fromJson(Map<String, dynamic> json) {
  return ListEventSourcesResponse(
    eventSources: (json['EventSources'] as List?)
        ?.whereNotNull()
        .map((e) =>
            EventSourceConfiguration.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextMarker: json['NextMarker'] as String?,
  );
}