toJson method

  1. @override
Json toJson()
override

The JSON form, with kind set to miss or refetch.

Implementation

@override
Json toJson() => {
  'kind': 'refetch',
  'query': query,
  'at': at,
  'reason': reason.name,
  'cause': cause?.toJson(),
  'matched': matched,
  'summary': summary,
};