create static method
return original data json
Implementation
static Report create({
bool schemeUtilsIsSetDefaultData = false,
String special_type = "report",
List<Sections>? sections,
}) {
// Report report = Report({
final Map report_data_create_json = {
"@type": special_type,
"sections": (sections != null) ? sections.toJson() : null,
};
report_data_create_json.removeWhere((key, value) => value == null);
if (schemeUtilsIsSetDefaultData) {
defaultData.forEach((key, value) {
if (report_data_create_json.containsKey(key) == false) {
report_data_create_json[key] = value;
}
});
}
return Report(report_data_create_json);
}