toJson method

Map<String, dynamic> toJson([
  1. bool preFlight = false
])

Implementation

Map<String, dynamic> toJson([bool preFlight = false]) {
  if (preFlight) {
    return {"preflightCommitment": value};
  }
  return {"commitment": value};
}