decodeAck static method
Decode store acknowledgment
Implementation
static StoreAck decodeAck(Uint8List bytes) {
final json = utf8.decode(bytes);
final data = jsonDecode(json) as Map<String, dynamic>;
return StoreAck(
messageId: data['messageId'] as String,
success: data['success'] as bool,
errorMessage: data['errorMessage'] as String?,
estimatedDeliveryTime: data['estimatedDeliveryTime'] as int?,
);
}