PayloadMapX extension
Typed read helpers for durable task-argument and workflow-parameter maps.
Methods
-
requiredValue<
T> (String key, {PayloadCodec< T> ? codec}) → T -
Available on Map<
Returns the decoded value forString, Object?> , provided by the PayloadMapX extensionkey, throwing when it is missing. -
requiredValueJson<
T> (String key, {required T decode(Map< String, dynamic> payload), String? typeName}) → T -
Available on Map<
Decodes the value forString, Object?> , provided by the PayloadMapX extensionkeyas a typed DTO, throwing when absent. -
requiredValueList<
T> (String key, {PayloadCodec< T> ? codec}) → List<T> -
Available on Map<
Returns the decoded list value forString, Object?> , provided by the PayloadMapX extensionkey, throwing when it is missing. -
requiredValueListJson<
T> (String key, {required T decode(Map< String, dynamic> payload), String? typeName}) → List<T> -
Available on Map<
Returns the decoded DTO list value forString, Object?> , provided by the PayloadMapX extensionkey, throwing when absent. -
requiredValueListVersionedJson<
T> (String key, {required T decode(Map< String, dynamic> payload, int version), int defaultVersion = 1, int? defaultDecodeVersion, String? typeName}) → List<T> -
Available on Map<
Returns the decoded version-aware DTO list value forString, Object?> , provided by the PayloadMapX extensionkey, throwing when absent. -
requiredValueVersionedJson<
T> (String key, {required T decode(Map< String, dynamic> payload, int version), int defaultVersion = 1, int? defaultDecodeVersion, String? typeName}) → T -
Available on Map<
Decodes the value forString, Object?> , provided by the PayloadMapX extensionkeyas a version-aware typed DTO, throwing when absent. -
value<
T> (String key, {PayloadCodec< T> ? codec}) → T? -
Available on Map<
Returns the decoded value forString, Object?> , provided by the PayloadMapX extensionkey, ornullwhen the payload is absent. -
valueJson<
T> (String key, {required T decode(Map< String, dynamic> payload), String? typeName}) → T? -
Available on Map<
Decodes the value forString, Object?> , provided by the PayloadMapX extensionkeyas a typed DTO with a JSON decoder. -
valueJsonOr<
T> (String key, T fallback, {required T decode(Map< String, dynamic> payload), String? typeName}) → T -
Available on Map<
Decodes the value forString, Object?> , provided by the PayloadMapX extensionkeyas a typed DTO, orfallbackwhen absent. -
valueList<
T> (String key, {PayloadCodec< T> ? codec}) → List<T> ? -
Available on Map<
Returns the decoded list value forString, Object?> , provided by the PayloadMapX extensionkey, ornullwhen it is absent. -
valueListJson<
T> (String key, {required T decode(Map< String, dynamic> payload), String? typeName}) → List<T> ? -
Available on Map<
Returns the decoded DTO list value forString, Object?> , provided by the PayloadMapX extensionkey, ornullwhen it is absent. -
valueListJsonOr<
T> (String key, List< T> fallback, {required T decode(Map<String, dynamic> payload), String? typeName}) → List<T> -
Available on Map<
Returns the decoded DTO list value forString, Object?> , provided by the PayloadMapX extensionkey, orfallbackwhen absent. -
valueListOr<
T> (String key, List< T> fallback, {PayloadCodec<T> ? codec}) → List<T> -
Available on Map<
Returns the decoded list value forString, Object?> , provided by the PayloadMapX extensionkey, orfallbackwhen it is absent. -
valueListVersionedJson<
T> (String key, {required T decode(Map< String, dynamic> payload, int version), int defaultVersion = 1, int? defaultDecodeVersion, String? typeName}) → List<T> ? -
Available on Map<
Returns the decoded version-aware DTO list value forString, Object?> , provided by the PayloadMapX extensionkey, ornullwhen it is absent. -
valueListVersionedJsonOr<
T> (String key, List< T> fallback, {required T decode(Map<String, dynamic> payload, int version), int defaultVersion = 1, int? defaultDecodeVersion, String? typeName}) → List<T> -
Available on Map<
Returns the decoded version-aware DTO list value forString, Object?> , provided by the PayloadMapX extensionkey, orfallbackwhen absent. -
valueOr<
T> (String key, T fallback, {PayloadCodec< T> ? codec}) → T -
Available on Map<
Returns the decoded value forString, Object?> , provided by the PayloadMapX extensionkey, orfallbackwhen it is absent. -
valueVersionedJson<
T> (String key, {required T decode(Map< String, dynamic> payload, int version), int defaultVersion = 1, int? defaultDecodeVersion, String? typeName}) → T? -
Available on Map<
Decodes the value forString, Object?> , provided by the PayloadMapX extensionkeyas a typed DTO with a version-aware JSON decoder. -
valueVersionedJsonOr<
T> (String key, T fallback, {required T decode(Map< String, dynamic> payload, int version), int defaultVersion = 1, int? defaultDecodeVersion, String? typeName}) → T -
Available on Map<
Decodes the value forString, Object?> , provided by the PayloadMapX extensionkeyas a version-aware typed DTO, orfallbackwhen absent.