decode static method

UserLeaveEvent decode(
  1. Object result
)

Implementation

static UserLeaveEvent decode(Object result) {
  result as List<Object?>;
  return UserLeaveEvent(
    uid: result[0]! as int,
    reason: result[1]! as int,
    leaveExtraInfo: result[2] != null
        ? NERtcUserLeaveExtraInfo.decode(result[2]! as List<Object?>)
        : null,
  );
}