fromJSON static method

ModeInfo fromJSON(
  1. TxSignerModeInfo data
)

Implementation

static ModeInfo fromJSON(TxSignerModeInfo data) {
  if (data.single != null) {
    return ModeInfo(data.single);
  }

  // if (data.multi != null)
  // {
  //     return new ModeInfo(data.multi);
  // }

  throw Exception("Must Single or Multi");
}