ListStreamsOutput.fromJson constructor

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

Implementation

factory ListStreamsOutput.fromJson(Map<String, dynamic> json) {
  return ListStreamsOutput(
    hasMoreStreams: json['HasMoreStreams'] as bool,
    streamNames: (json['StreamNames'] as List)
        .whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}