decode static method Null safety
- Object message
Implementation
static LocationPuck2D decode(Object message) {
final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
return LocationPuck2D(
topImage: pigeonMap['topImage'] as Uint8List?,
bearingImage: pigeonMap['bearingImage'] as Uint8List?,
shadowImage: pigeonMap['shadowImage'] as Uint8List?,
scaleExpression: pigeonMap['scaleExpression'] as String?,
);
}