MessageMeta.fromJson constructor
Read this payload from a decoded JSON object.
Implementation
factory MessageMeta.fromJson(Map<String, dynamic> json) => MessageMeta(
msgId: json['msgId'] as String,
queue: Queue(json['queue'] as String),
size: json['size'] as int,
receivedAt: json['receivedAt'] as String,
expiresAt: json['expiresAt'] as String?,
from: json['from'] as String?,
to: json['to'] as String?,
protocol: json['protocol'] == null
? null
: WireProtocol(json['protocol'] as String),
deliveryState: json['deliveryState'] == null
? null
: DeliveryState(json['deliveryState'] as String),
deliveredAt: json['deliveredAt'] as String?,
);