toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var business = this.business;
  var personal = this.personal;

  final json = <String, Object?>{};
  if (business != null) {
    json[r'business'] = business.toJson();
  }
  if (personal != null) {
    json[r'personal'] = personal.toJson();
  }
  return json;
}