ConfigurationModel constructor

ConfigurationModel(
  1. {String urlApi = 'https://develop.carespace.ai/api/admin',
  2. String botName = 'Amanda',
  3. String avatarImage = 'assets/images/default_bot_avatar.jpg',
  4. String wsUrl = 'wss://develop.carespace.ai/api/bot/web'}
)

Implementation

factory ConfigurationModel(
    {String urlApi = 'https://develop.carespace.ai/api/admin',
    String botName = 'Amanda',
    String avatarImage = 'assets/images/default_bot_avatar.jpg',
    String wsUrl = 'wss://develop.carespace.ai/api/bot/web'}) {
  _instance ??= ConfigurationModel._internal(
      urlApi: urlApi,
      botName: botName,
      avatarImage: avatarImage,
      wsUrl: wsUrl);
  return _instance;
}