Operation class abstract
- Available extensions
- Annotations
-
- @freezed
Constructors
-
Operation({required String id, required String name, @JsonKey.new(unknownEnumValue: OperationType.unknown) required OperationType operationType, @JsonKey.new(unknownEnumValue: HttpRequestType.httpGet) HttpRequestType? requestType, String? url, @Default.new([]) List<
HttpHeader> ? headers, String? payload, String? languageId, Timezone? timezone, String? timezoneId, @Default.new([]) List<String> ? receptionEmails, String? emailSubject, @ColorOrNullConverter() Color? color, @ColorOrNullConverter() Color? textColor, List<PhoneNumber> ? destinationPhones, @JsonKey.new(unknownEnumValue: NotificationType.unknown) NotificationType? notificationType, String? externalAccountId, List<Access> ? access, List<Trigger> ? triggers, bool? useAssetContactsInstead, 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, @DurationOrNullConverter() Duration? duration}) -
constfactory
-
Operation.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
access
→ List<
Access> ? -
Is the list of granted access of the operation.
no setterinherited
- attachImage → bool?
-
attachImageis a flag to attach the image of the submission to the email.no setterinherited - color → Color?
-
Is the color of the inline notification
This field will only be considered in the following
operationType:no setterinherited -
copyWith
→ $OperationCopyWith<
Operation> -
Create a copy of Operation
with the given fields replaced by the non-null parameter values.
no setterinherited
-
destinationPhones
→ List<
PhoneNumber> ? -
Is the receiver numbers to send the message
This field will only be considered in the following
operationType:no setterinherited - duration → Duration?
-
durationis the duration of the notificationno setterinherited - emailSubject → String?
-
Is the subject of the email
This field will only be considered in the following
operationType:no setterinherited - emailTemplateId → String?
-
The
emailTemplateIdof the operation. Only the IDno setterinherited - externalAccountId → String?
-
The
externalAccountIdof the operation. Only the IDno setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ List<
HttpHeader> ? -
Is the headers to send in the HTTP request
This field will only be considered in the following
operationType:no setterinherited - icon → LayrzIcon?
-
iconis the icon of the notificationno setterinherited - id → String
-
Is the ID of the operation.
no setterinherited
- languageId → String?
-
Is the language ID of the message. Used to define the default language of the message.
no setterinherited
- name → String
-
Is the name of the operation.
no setterinherited
- notificationType → NotificationType?
-
Is the Notification type to perform
This field will only be considered in the following
operationType:no setterinherited - operationType → OperationType
-
Is the type of operation.
no setterinherited
- payload → String?
-
Is the payload to send in the submission.
no setterinherited
-
pushPlatforms
→ List<
AppPlatform> ? -
pushPlatformsis the list of platforms where the operation should be received. This field will only be considered in the followingoperationType:no setterinherited - pushTitle → String?
-
pushTitleis the title of the push notification. This field will only be considered in the followingoperationType:no setterinherited -
receptionEmails
→ List<
String> ? -
Is the reception email to send the message
This field will only be considered in the following
operationType:no setterinherited - requestType → HttpRequestType?
-
Is the HTTP Request type to perform
This field will only be considered in the following
operationType:no setterinherited - 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.no setterinherited - soundEffectUri → String?
-
soundEffectUriis the URI of the sound effect to play when the notification arrives.no setterinherited - textColor → Color?
-
Is the text color of the inline notification
This field will only be considered in the following
operationType:no setterinherited - timezone → Timezone?
-
timezoneIs the timezone of the message. Used to define the default timezone of the message.no setterinherited - timezoneId → String?
-
timezoneIdis the timezone ID of the message. Used to define the default timezone of the message.no setterinherited -
triggers
→ List<
Trigger> ? -
Is the list of associated triggers (directly or indirectly) of the operation.
no setterinherited
- url → String?
-
Is the URL to perform the request
This field will only be considered in the following
operationType:no setterinherited - useAssetContactsInstead → bool?
-
useAssetContactsInsteadis a flag to use the asset contacts instead of the submission contacts.no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_Operation value)) → TResult -
Available on Operation, provided by the OperationPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_Operation value)?) → TResult? -
Available on Operation, provided by the OperationPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_Operation value)?, {required TResult orElse()}) → TResult -
Available on Operation, provided by the OperationPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String id, String name, OperationType operationType, HttpRequestType? requestType, String? url, List< HttpHeader> ? headers, String? payload, String? languageId, Timezone? timezone, String? timezoneId, List<String> ? receptionEmails, String? emailSubject, Color? color, Color? textColor, List<PhoneNumber> ? destinationPhones, NotificationType? notificationType, String? externalAccountId, List<Access> ? access, List<Trigger> ? triggers, bool? useAssetContactsInstead, bool? attachImage, String? emailTemplateId, List<AppPlatform> ? pushPlatforms, String? pushTitle, SoundEffect soundEffect, String? soundEffectUri, LayrzIcon? icon, Duration? duration)?, {required TResult orElse()}) → TResult -
Available on Operation, provided by the OperationPatterns 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 Operation 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< HttpHeader> ? headers, String? payload, String? languageId, Timezone? timezone, String? timezoneId, List<String> ? receptionEmails, String? emailSubject, Color? color, Color? textColor, List<PhoneNumber> ? destinationPhones, NotificationType? notificationType, String? externalAccountId, List<Access> ? access, List<Trigger> ? triggers, bool? useAssetContactsInstead, bool? attachImage, String? emailTemplateId, List<AppPlatform> ? pushPlatforms, String? pushTitle, SoundEffect soundEffect, String? soundEffectUri, LayrzIcon? icon, Duration? duration)) → TResult -
Available on Operation, provided by the OperationPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String id, String name, OperationType operationType, HttpRequestType? requestType, String? url, List< HttpHeader> ? headers, String? payload, String? languageId, Timezone? timezone, String? timezoneId, List<String> ? receptionEmails, String? emailSubject, Color? color, Color? textColor, List<PhoneNumber> ? destinationPhones, NotificationType? notificationType, String? externalAccountId, List<Access> ? access, List<Trigger> ? triggers, bool? useAssetContactsInstead, bool? attachImage, String? emailTemplateId, List<AppPlatform> ? pushPlatforms, String? pushTitle, SoundEffect soundEffect, String? soundEffectUri, LayrzIcon? icon, Duration? duration)?) → TResult? -
Available on Operation, provided by the OperationPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited