WhereNowResult.fromJson constructor

WhereNowResult.fromJson(
  1. Map<String, dynamic> object
)

Implementation

factory WhereNowResult.fromJson(Map<String, dynamic> object) {
  var result = DefaultResult.fromJson(object);
  var payload = result.otherKeys['payload'] as Map<String, dynamic>;
  return WhereNowResult._(Set.from(payload['channels'] ?? []));
}