response method

  1. @override
Future<ChannelListQueryResponse<OpenChannel>> response(
  1. Map<String, dynamic> res
)
override

Implementation

@override
Future<ChannelListQueryResponse<OpenChannel>> response(res) async {
  return ChannelListQueryResponse()
    ..channels = (res['channels'] as List)
        .map((e) => OpenChannel.fromJsonAndCached(e, ts: res['ts']))
        .toList()
    ..next = res['next'] as String;
}