isPlaintextMessage function

bool isPlaintextMessage(
  1. dynamic message
)

Implementation

bool isPlaintextMessage(dynamic message) {
  var asMap = credentialToMap(message);
  return plaintextSchema.validate(asMap).isValid;
}