toJson method
JSON view used by snapshots.
Implementation
Map<String, dynamic> toJson() => <String, dynamic>{
'issue_id': issueId,
'identifier': identifier,
'attempt': attempt,
'kind': kind.name,
'due_at': dueAt.toIso8601String(),
if (error != null) 'error': error,
};