WiFi.fromNative constructor

WiFi.fromNative(
  1. Map<Object?, Object?> data
)

Construct a new WiFi instance from the given data.

Implementation

factory WiFi.fromNative(Map<Object?, Object?> data) {
  return WiFi(
    encryptionType: EncryptionType.fromRawValue(
      data['encryptionType'] as int? ?? 0,
    ),
    ssid: data['ssid'] as String?,
    password: data['password'] as String?,
  );
}