SipConfigModel constructor
const
SipConfigModel({
- @Default.new('') String displayName,
- @JsonKey.new(name: 'sip_server') @Default.new('') String sipServer,
- @JsonKey.new(name: 'ws_server') @Default.new('') String wsServer,
- @JsonKey.new(name: 'auth_username') @Default.new('') String authUsername,
- @Default.new('') String username,
- @Default.new('') String password,
- @JsonKey.new(name: 'call_to') @Default.new('') String callTo,
- @JsonKey.new(name: 'call_to_alias') @Default.new('') String callToAlias,
- @Default.new(false) bool keyboard,
Constructs a SipConfigModel with optional named parameters.
Implementation
const factory SipConfigModel({
/// Display name of the user.
@Default('') String displayName,
/// SIP server address.
@JsonKey(name: 'sip_server') @Default('') String sipServer,
/// WebSocket server address for SIP signaling.
@JsonKey(name: 'ws_server') @Default('') String wsServer,
/// Username used for SIP authentication.
@JsonKey(name: 'auth_username') @Default('') String authUsername,
/// Account username.
@Default('') String username,
/// Account password.
@Default('') String password,
/// Default phone number to call.
@JsonKey(name: 'call_to') @Default('') String callTo,
/// Alias name for the default phone number.
@JsonKey(name: 'call_to_alias') @Default('') String callToAlias,
/// Whether the keyboard should be shown by default.
@Default(false) bool keyboard,
}) = _SipConfigModel;