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})
const
factory
Operation.fromJson(Map<String, dynamic> json)
factory

Properties

access List<Access>?
Is the list of granted access of the operation.
no setterinherited
attachImage bool?
attachImage is 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?
duration is the duration of the notification
no setterinherited
emailSubject String?
Is the subject of the email This field will only be considered in the following operationType:
no setterinherited
emailTemplateId String?
The emailTemplateId of the operation. Only the ID
no setterinherited
externalAccountId String?
The externalAccountId of the operation. Only the ID
no 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?
icon is the icon of the notification
no 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>?
pushPlatforms is the list of platforms where the operation should be received. This field will only be considered in the following operationType:
no setterinherited
pushTitle String?
pushTitle is the title of the push notification. This field will only be considered in the following operationType:
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
soundEffect is the sound effect to play when the notification arrives.
no setterinherited
soundEffectUri String?
soundEffectUri is 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?
timezone Is the timezone of the message. Used to define the default timezone of the message.
no setterinherited
timezoneId String?
timezoneId is 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?
useAssetContactsInstead is 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

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_Operation value)?) → TResult?

Available on Operation, provided by the OperationPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_Operation value)?, {required TResult orElse()}) → TResult

Available on Operation, provided by the OperationPatterns extension

A variant of map that fallback to returning orElse.
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 of when that fallback to an orElse callback.
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

A switch-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 of when that fallback to returning null

Operators

operator ==(Object other) bool
The equality operator.
inherited