Map<String, List<Map<String, dynamic>>> toJson() { return { 'errors': errors.map((e) => e.toJson()).toList(), }; }