toJson method
Implementation
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
if (_h1 != null) {
map['h1'] = _h1?.toJson();
}
if (_h2 != null) {
map['h2'] = _h2?.toJson();
}
if (_h3 != null) {
map['h3'] = _h3?.toJson();
}
return map;
}