saveJson static method
Directly save json data.
formId
The formId of the bill or basedata.
json
Json data.
isDeleteEntry
Before saving, it is wheter delete the entry.
isAutoSubmitAndAudit
Whehter to automatic audit.
@return A response model.
Implementation
static Future<ResponseStatus> saveJson(
String formId, Map<String, dynamic> json,
{
bool isDeleteEntry=true,
bool isAutoSubmitAndAudit=false,
List<String>? needUpDateFields,
List<String>? needReturnFields,
}) async {
var resp = await K3Client.getInstance().operate(
SaveParam.builder()
.formId(formId)
.isDeleteEntry(isDeleteEntry)
.isAutoSubmitAndAudit(isAutoSubmitAndAudit)
.needUpDateFields(needUpDateFields)
.needReturnFields(needReturnFields)
.model(json)
.build()
);
return ResponseStatus.fromJson(resp);
}