factory HorizontalRule.fromJson(Map<String, dynamic> json) { final hr = HorizontalRule(); hr.id = json['id'] as String? ?? hr.id; return hr; }