decode static method

PositionMessage decode(
  1. Object message
)

Implementation

static PositionMessage decode(Object message) {
  final Map<Object, Object> pigeonMap = message as Map<Object, Object>;
  return PositionMessage()
    ..textureId = pigeonMap['textureId'] as int
    ..position = pigeonMap['position'] as int;
}