decode static method Null safety
- Object message
Implementation
static LocationPuck decode(Object message) {
final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
return LocationPuck(
locationPuck2D: pigeonMap['locationPuck2D'] != null
? LocationPuck2D.decode(pigeonMap['locationPuck2D']!)
: null,
locationPuck3D: pigeonMap['locationPuck3D'] != null
? LocationPuck3D.decode(pigeonMap['locationPuck3D']!)
: null,
);
}