decode static method

ToggleMessage decode(
  1. Object result
)

Implementation

static ToggleMessage decode(Object result) {
  result as List<Object?>;
  return ToggleMessage(
    enable: result[0] as bool?,
  );
}