ListStreamsOutput.fromJson constructor

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

Implementation

factory ListStreamsOutput.fromJson(Map<String, dynamic> json) {
  return ListStreamsOutput(
    nextToken: json['NextToken'] as String?,
    streamInfoList: (json['StreamInfoList'] as List?)
        ?.whereNotNull()
        .map((e) => StreamInfo.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}