decode static method

ToggleMessage decode(
  1. Object message
)

Implementation

static ToggleMessage decode(Object message) {
  final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
  return ToggleMessage()..enable = pigeonMap['enable'] as bool?;
}