toJson method

Map<String, dynamic> toJson()

Converts the RejectRequestVPResponseMessage instance to a JSON map.

Implementation

Map<String, dynamic> toJson() {
  try {
    final Map<String, dynamic> data = {};
    data["id"] = id;
    data["type"] = type;
    data["from"] = from;
    data["to"] = to;
    data["ack"] = ack;
    data["createdTime"] = createdTime;
    data["expiresTime"] = expiresTime;
    data["body"] = {};
    return data;
  } catch (e) {
    rethrow;
  }
}