ServiceRequest class
Used to invoke a specific service function with optional parameters.
- Inheritance
-
- Object
- ServiceMessage
- ServiceRequest
Constructors
-
ServiceRequest.new({String? messageId, Set<
String> receivers = const <String>{}, String sender = '', String? replyingToMessage, String? replyToEndpoint, String serviceType = '', Map<String, dynamic> ? parameters}) -
Creates a ServiceRequest with a newly generated UUIDv4 if
messageId
is not set. -
ServiceRequest.fromJson(Map<
String, dynamic> json) -
Creates a ServiceRequest with the information stored in the
json
.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- identifier → String
-
The unique identifier of this message (UUIDv4).
no setterinherited
-
parameters
↔ Map<
String, dynamic> ? -
The parameter passed to the service.
getter/setter pair
-
receivers
↔ Set<
String> -
All receivers of this message (should be a
s3I:UUIDv4
of the receiving thing).getter/setter pairinherited - replyingToMessage ↔ String?
-
The identifier of the message to which this message is answering.
getter/setter pairinherited
- replyToEndpoint ↔ String?
-
The endpoint to which the answer to this message should be sent.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sender ↔ String
-
The sender of this message (should be a
s3I:UUIDv4
of the publishing thing).getter/setter pairinherited - serviceType ↔ String
-
The fml4.0 key to a specific service functionality.
getter/setter pairinherited
Methods
-
generateFromJson(
Map< String, dynamic> json) → void -
Fills this ServiceMessage with the information stored in the
json
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Returns the information stored in this object in a way the it could be
encoded via
jsonEncode()
.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited