decode static method

VolumeMessage decode(
  1. Object message
)

Implementation

static VolumeMessage decode(Object message) {
  final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
  return VolumeMessage(
    textureId: pigeonMap['textureId'] as int?,
    volume: pigeonMap['volume'] as double?,
  );
}