toJson method

Map<String, dynamic> toJson()

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;
}