encode method

Object encode()

Implementation

Object encode() {
  final Map<Object?, Object?> pigeonMap = <Object?, Object?>{};
  pigeonMap['status'] = status;
  pigeonMap['error'] = error;
  pigeonMap['batteryPercent'] = batteryPercent;
  pigeonMap['altitude'] = altitude;
  pigeonMap['latitude'] = latitude;
  pigeonMap['longitude'] = longitude;
  pigeonMap['speed'] = speed;
  pigeonMap['roll'] = roll;
  pigeonMap['pitch'] = pitch;
  pigeonMap['yaw'] = yaw;
  return pigeonMap;
}