SipConfigModel constructor

const SipConfigModel({
  1. @Default.new('') String displayName,
  2. @JsonKey.new(name: 'sip_server') @Default.new('') String sipServer,
  3. @JsonKey.new(name: 'ws_server') @Default.new('') String wsServer,
  4. @JsonKey.new(name: 'auth_username') @Default.new('') String authUsername,
  5. @Default.new('') String username,
  6. @Default.new('') String password,
  7. @JsonKey.new(name: 'call_to') @Default.new('') String callTo,
  8. @JsonKey.new(name: 'call_to_alias') @Default.new('') String callToAlias,
  9. @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;