Map<String, Object?> toJson() => { 'entry': entryId, 'errors': [for (var error in errors) error.toJson()], };