CloudEvent class

Represents CloudEvents data.

Use this as the parameter in a function you wish to use as a handler for CloudEvents.

Annotations
  • @JsonSerializable(includeIfNull: false, checked: true)

Constructors

CloudEvent({required String id, required Uri source, required String specVersion, required String type, Object? data, String? dataContentType, Uri? dataSchema, String? subject, DateTime? time})
CloudEvent.fromJson(Map<String, dynamic> json)
factory

Properties

data Object?
final
dataContentType String?
final
dataSchema Uri?
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source Uri
final
specVersion String
final
subject String?
final
time DateTime?
final
type String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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