ReceivedMetadata.fromJson constructor

ReceivedMetadata.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ReceivedMetadata.fromJson(Map<String, dynamic> json) {
  return ReceivedMetadata(
    allowedOperations: (json['AllowedOperations'] as List?)
        ?.whereNotNull()
        .map((e) => (e as String).toAllowedOperation())
        .toList(),
    receivedStatus: (json['ReceivedStatus'] as String?)?.toReceivedStatus(),
  );
}