FilterCriteria.fromJson constructor

FilterCriteria.fromJson(
  1. Map json_
)

Implementation

FilterCriteria.fromJson(core.Map json_)
    : this(
        excludeChats: json_.containsKey('excludeChats')
            ? json_['excludeChats'] as core.bool
            : null,
        from: json_.containsKey('from') ? json_['from'] as core.String : null,
        hasAttachment: json_.containsKey('hasAttachment')
            ? json_['hasAttachment'] as core.bool
            : null,
        negatedQuery: json_.containsKey('negatedQuery')
            ? json_['negatedQuery'] as core.String
            : null,
        query:
            json_.containsKey('query') ? json_['query'] as core.String : null,
        size: json_.containsKey('size') ? json_['size'] as core.int : null,
        sizeComparison: json_.containsKey('sizeComparison')
            ? json_['sizeComparison'] as core.String
            : null,
        subject: json_.containsKey('subject')
            ? json_['subject'] as core.String
            : null,
        to: json_.containsKey('to') ? json_['to'] as core.String : null,
      );