toMap method
Converts this TaskMetadata into a JSON-compatible map.
Implementation
@override
Map<String, Object?> toMap() {
return {if (ttl != null) 'ttl': ttl};
}
Converts this TaskMetadata into a JSON-compatible map.
@override
Map<String, Object?> toMap() {
return {if (ttl != null) 'ttl': ttl};
}