encode method Null safety

Object encode()

Implementation

Object encode() {
  final Map<Object?, Object?> pigeonMap = <Object?, Object?>{};
  pigeonMap['deviceId'] = deviceId;
  pigeonMap['friendlyName'] = friendlyName;
  pigeonMap['modelName'] = modelName;
  return pigeonMap;
}