frappeDocStatusToInt static method

int? frappeDocStatusToInt(
  1. FrappeDocStatus? docStatus
)

Converts the docStatus of a document FrappeDocStatus to its representation in Frappé 0, 1 or 2

Implementation

static int? frappeDocStatusToInt(FrappeDocStatus? docStatus) {
  if (docStatus == null) {
    return null;
  }
  return docStatus.index;
}