toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = {};
  data['fromCAIP10'] = fromCAIP10;
  data['toCAIP10'] = toCAIP10;
  data['fromDID'] = fromDID;
  data['toDID'] = toDID;
  data['messageType'] = messageType;
  data['messageContent'] = messageContent;
  data['messageObj'] = messageObj;
  data['signature'] = signature;
  data['sigType'] = sigType;
  data['link'] = link;
  data['timestamp'] = timestamp;
  data['encType'] = encType;
  data['encryptedSecret'] = encryptedSecret;
  data['deprecated'] = deprecated;
  data['deprecatedCode'] = deprecatedCode;
  data['verificationProof'] = verificationProof;
  data['sessionKey'] = sessionKey;
  return data;
}