Filter.fromJson constructor

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

Deserialize a filter from a JSON.

Implementation

Filter.fromJson(Map<String, dynamic> json) {
  ids =
      json['ids'] == null ? null : List<String>.from(json['ids'] as Iterable);
  authors = json['authors'] == null
      ? null
      : List<String>.from(json['authors'] as Iterable);
  kinds = json['kinds'] == null
      ? null
      : List<int>.from(json['kinds'] as Iterable);
  e = json['#e'] == null ? null : List<String>.from(json['#e'] as Iterable);
  p = json['#p'] == null ? null : List<String>.from(json['#p'] as Iterable);
  t = json['#t'] == null ? null : List<String>.from(json['#t'] as Iterable);
  since = json['since'] as int?;
  until = json['until'] as int?;
  limit = json['limit'] as int?;
}