@override Map<String, dynamic> toJson() => { 'type': 'hr', 'id': id, if (styles != null && styles!.isNotEmpty) 'styles': List<String>.from(styles!), };