OperationInput class abstract
- Available extensions
- Annotations
-
- @unfreezed
Constructors
-
OperationInput({String? id, @Default.new('') String name, @JsonKey.new(unknownEnumValue: OperationType.unknown) @Default.new(OperationType.inAppNotification) OperationType operationType, @JsonKey.new(unknownEnumValue: HttpRequestType.httpGet) HttpRequestType? requestType, String? url, @Default.new([]) List<
HttpHeaderInput> headers, String? payload, String? languageId, @Default.new('UTC') String timezoneName, @Default.new('%Y-%m-%d %I:%M %p') String dateTimeFormat, @Default.new([]) List<String> receptionEmails, @Default.new('') String emailSubject, @ColorOrNullConverter() Color? color, @ColorOrNullConverter() Color? textColor, @Default.new([]) List<PhoneNumberInput> destinationPhones, @JsonKey.new(unknownEnumValue: NotificationType.unknown) NotificationType? notificationType, String? externalAccountId, @Default.new(false) bool useAssetContactsInstead, @Default.new(false) bool attachImage, String? emailTemplateId, @JsonKey.new(unknownEnumValue: AppPlatform.web) List<AppPlatform> ? pushPlatforms, String? pushTitle, @JsonKey.new(unknownEnumValue: SoundEffect.none) @Default.new(SoundEffect.none) SoundEffect soundEffect, String? soundEffectUri, @IconOrNullConverter() LayrzIcon? icon, @DurationConverter() @Default.new(Duration(seconds: 5)) Duration duration, String? layrzTemplate}) -
factory
-
OperationInput.fromJson(Map<
String, dynamic> json) -
factory
Properties
- attachImage ↔ bool
-
attachImageis a flag to attach the image of the submission to the email.getter/setter pairinherited - color ↔ Color?
-
Is the color of the inline notification
This field will only be considered in the following
operationType:getter/setter pairinherited -
copyWith
→ $OperationInputCopyWith<
OperationInput> -
Create a copy of OperationInput
with the given fields replaced by the non-null parameter values.
no setterinherited
- dateTimeFormat ↔ String
-
dateTimeFormatis the date time format to use for the operation. This will override the user's date time format preference.getter/setter pairinherited -
destinationPhones
↔ List<
PhoneNumberInput> -
Is the receiver numbers to send the message
This field will only be considered in the following
operationType:getter/setter pairinherited - duration ↔ Duration
-
durationis the duration of the notificationgetter/setter pairinherited - emailSubject ↔ String
-
Is the subject of the email
This field will only be considered in the following
operationType:getter/setter pairinherited - emailTemplateId ↔ String?
-
The
emailTemplateIdof the operation. Only the IDgetter/setter pairinherited - externalAccountId ↔ String?
-
The
externalAccountIdof the operation. Only the IDgetter/setter pairinherited - hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
↔ List<
HttpHeaderInput> -
Is the headers to send in the HTTP request
This field will only be considered in the following
operationType:getter/setter pairinherited - icon ↔ LayrzIcon?
-
iconis the icon of the notificationgetter/setter pairinherited - id ↔ String?
-
Is the ID of the operation.
getter/setter pairinherited
- languageId ↔ String?
-
Is the language ID of the message. Used to define the default language of the message.
getter/setter pairinherited
- layrzTemplate ↔ String?
-
layrzTemplateis the content SID to use for OperationType.sms and OperationType.whatsappMessage.getter/setter pairinherited - name ↔ String
-
Is the name of the operation.
getter/setter pairinherited
- notificationType ↔ NotificationType?
-
Is the Notification type to perform
This field will only be considered in the following
operationType:getter/setter pairinherited - operationType ↔ OperationType
-
Is the type of operation.
getter/setter pairinherited
- payload ↔ String?
-
Is the payload to send in the submission.
getter/setter pairinherited
-
pushPlatforms
↔ List<
AppPlatform> ? -
pushPlatformsis the list of platforms where the operation should be received. This field will only be considered in the followingoperationType:getter/setter pairinherited - pushTitle ↔ String?
-
pushTitleis the title of the push notification. This field will only be considered in the followingoperationType:getter/setter pairinherited -
receptionEmails
↔ List<
String> -
Is the reception email to send the message
This field will only be considered in the following
operationType:getter/setter pairinherited - requestType ↔ HttpRequestType?
-
Is the HTTP Request type to perform
This field will only be considered in the following
operationType:getter/setter pairinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- soundEffect ↔ SoundEffect
-
soundEffectis the sound effect to play when the notification arrives.getter/setter pairinherited - soundEffectUri ↔ String?
-
soundEffectUriis the URI of the sound effect to play when the notification arrives.getter/setter pairinherited - textColor ↔ Color?
-
Is the text color of the inline notification
This field will only be considered in the following
operationType:getter/setter pairinherited - timezoneName ↔ String
-
timezoneNameis the IANA name of the timezone.getter/setter pairinherited - url ↔ String?
-
Is the URL to perform the request
This field will only be considered in the following
operationType:getter/setter pairinherited - useAssetContactsInstead ↔ bool
-
useAssetContactsInsteadis a flag to use the asset contacts instead of the submission contacts.getter/setter pairinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_OperationInput value)) → TResult -
Available on OperationInput, provided by the OperationInputPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_OperationInput value)?) → TResult? -
Available on OperationInput, provided by the OperationInputPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_OperationInput value)?, {required TResult orElse()}) → TResult -
Available on OperationInput, provided by the OperationInputPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String? id, String name, OperationType operationType, HttpRequestType? requestType, String? url, List< HttpHeaderInput> headers, String? payload, String? languageId, String timezoneName, String dateTimeFormat, List<String> receptionEmails, String emailSubject, Color? color, Color? textColor, List<PhoneNumberInput> destinationPhones, NotificationType? notificationType, String? externalAccountId, bool useAssetContactsInstead, bool attachImage, String? emailTemplateId, List<AppPlatform> ? pushPlatforms, String? pushTitle, SoundEffect soundEffect, String? soundEffectUri, LayrzIcon? icon, Duration duration, String? layrzTemplate)?, {required TResult orElse()}) → TResult -
Available on OperationInput, provided by the OperationInputPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this OperationInput to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String? id, String name, OperationType operationType, HttpRequestType? requestType, String? url, List< HttpHeaderInput> headers, String? payload, String? languageId, String timezoneName, String dateTimeFormat, List<String> receptionEmails, String emailSubject, Color? color, Color? textColor, List<PhoneNumberInput> destinationPhones, NotificationType? notificationType, String? externalAccountId, bool useAssetContactsInstead, bool attachImage, String? emailTemplateId, List<AppPlatform> ? pushPlatforms, String? pushTitle, SoundEffect soundEffect, String? soundEffectUri, LayrzIcon? icon, Duration duration, String? layrzTemplate)) → TResult -
Available on OperationInput, provided by the OperationInputPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String? id, String name, OperationType operationType, HttpRequestType? requestType, String? url, List< HttpHeaderInput> headers, String? payload, String? languageId, String timezoneName, String dateTimeFormat, List<String> receptionEmails, String emailSubject, Color? color, Color? textColor, List<PhoneNumberInput> destinationPhones, NotificationType? notificationType, String? externalAccountId, bool useAssetContactsInstead, bool attachImage, String? emailTemplateId, List<AppPlatform> ? pushPlatforms, String? pushTitle, SoundEffect soundEffect, String? soundEffectUri, LayrzIcon? icon, Duration duration, String? layrzTemplate)?) → TResult? -
Available on OperationInput, provided by the OperationInputPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited