RadiusSettings.fromJson constructor
RadiusSettings.fromJson(
- Map<String, dynamic> json
)
Implementation
factory RadiusSettings.fromJson(Map<String, dynamic> json) {
return RadiusSettings(
authenticationProtocol: (json['AuthenticationProtocol'] as String?)
?.toRadiusAuthenticationProtocol(),
displayLabel: json['DisplayLabel'] as String?,
radiusPort: json['RadiusPort'] as int?,
radiusRetries: json['RadiusRetries'] as int?,
radiusServers: (json['RadiusServers'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
radiusTimeout: json['RadiusTimeout'] as int?,
sharedSecret: json['SharedSecret'] as String?,
useSameUsername: json['UseSameUsername'] as bool?,
);
}