NetworkType.fromJson constructor
a NetworkType return type can be :
Implementation
factory NetworkType.fromJson(Map<String, dynamic> json) {
switch (json["@type"]) {
case NetworkTypeNone.CONSTRUCTOR:
return NetworkTypeNone.fromJson(json);
case NetworkTypeMobile.CONSTRUCTOR:
return NetworkTypeMobile.fromJson(json);
case NetworkTypeMobileRoaming.CONSTRUCTOR:
return NetworkTypeMobileRoaming.fromJson(json);
case NetworkTypeWiFi.CONSTRUCTOR:
return NetworkTypeWiFi.fromJson(json);
case NetworkTypeOther.CONSTRUCTOR:
return NetworkTypeOther.fromJson(json);
default:
return const NetworkType();
}
}