toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  final data = <String, Object?>{};
  if (body != null) data['body'] = body!.toJson();
  data['action'] = action;
  data['requesting_device_id'] = requestingDeviceId;
  data['request_id'] = requestId;
  return data;
}