RemoteConfig constructor
const
RemoteConfig({
- required LocalizedText name,
- @JsonKey.new(name: 'welcome_message') required LocalizedText welcomeMessage,
- @JsonKey.new(name: 'system_instruction') required LocalizedText systemInstruction,
- @JsonKey.new(name: 'default_locale') @Default.new('en') String defaultLocale,
- @JsonKey.new(name: 'supported_locales') @Default.new(['en']) List<
String> supportedLocales, - String? fontFamily,
- String? color,
- String? avatar,
- @JsonKey.new(name: 'fab_configuration') FabConfiguration? fabConfiguration,
Implementation
const factory RemoteConfig({
/// Bot display name from server (localized).
required LocalizedText name,
/// Welcome message from server configuration (localized).
// ignore: invalid_annotation_target
@JsonKey(name: 'welcome_message') required LocalizedText welcomeMessage,
/// System instructions from server (localized).
// ignore: invalid_annotation_target
@JsonKey(name: 'system_instruction')
required LocalizedText systemInstruction,
/// Default locale from server
// ignore: invalid_annotation_target
@JsonKey(name: 'default_locale') @Default('en') String defaultLocale,
/// Supported locales from server
// ignore: invalid_annotation_target
@JsonKey(name: 'supported_locales')
@Default(['en'])
List<String> supportedLocales,
/// Font family setting from server.
String? fontFamily,
/// Primary color setting from server.
String? color,
/// Avatar URL or data from server.
String? avatar,
/// FAB configuration from server.
// ignore: invalid_annotation_target
@JsonKey(name: 'fab_configuration') FabConfiguration? fabConfiguration,
}) = _RemoteConfig;