EmptyMessage.fromJson constructor

EmptyMessage.fromJson(
  1. dynamic jsonObject
)

Implementation

EmptyMessage.fromJson(super.jsonObject) : super.fromJson() {
  if (type != DidcommMessages.emptyMessage) {
    throw Exception('Wrong message type');
  }
  if (body.isNotEmpty) throw Exception('this message is not empty');
}