Networks.fromJson constructor
Networks.fromJson(
- Object? json
Implementation
factory Networks.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return Networks(
available: (map['available'] as List<Object?>)
.map((el) => (el as String))
.toList(),
preferred: map['preferred'] == null ? null : (map['preferred'] as String),
);
}