clone method

  1. @override
JsonRequest clone()
inherited

Returns a clone of this request.

Sub classes should override this, call super.clone() first to get the base clone, and then add fields specific to their implementation.

Implementation

@override
JsonRequest clone() {
  final JsonRequest requestClone = super.clone() as JsonRequest;
  return requestClone..body = _source;
}