nullifyFields<T extends FrappeDocument> static method

T nullifyFields<T extends FrappeDocument>(
  1. T doc
)

Implementation

static T nullifyFields<T extends FrappeDocument>(T doc) => doc
  ..name = null
  ..doctype = null
  ..idx = null
  ..creation = null
  ..modified = null
  ..docStatus = null;