toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
      'modules': modules,
      if (totalModules != null) 'totalModules': totalModules,
    };