toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (relatedCode != null) {
json[r'relatedCode'] = relatedCode;
}
if (relatedPeriodicity != null) {
json[r'relatedPeriodicity'] = relatedPeriodicity;
}
return json;
}