toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final audit = this.audit;
  final general = this.general;
  return {
    if (audit != null) 'audit': audit,
    if (general != null) 'general': general,
  };
}