decode static method

NetworkResult decode(
  1. Object message
)

Implementation

static NetworkResult decode(Object message) {
  final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
  return NetworkResult()
    ..wifi = pigeonMap['wifi'] as String?
    ..wifi_tether = pigeonMap['wifi_tether'] as String?
    ..wifiboth = pigeonMap['wifiboth'] as String?
    ..private = pigeonMap['private'] as String?
    ..cellular = pigeonMap['cellular'] as String?
    ..Usb = pigeonMap['Usb'] as String?
    ..Bluethooth = pigeonMap['Bluethooth'] as String?
    ..IsWifiConnected = pigeonMap['IsWifiConnected'] as bool?
    ..IsHotspotEnabled = pigeonMap['IsHotspotEnabled'] as bool?
    ..IsWifiEnabled = pigeonMap['IsWifiEnabled'] as bool?;
}