Request constructor

Request({
  1. String? forDid,
  2. String? displayName,
  3. String? comment,
  4. String? fromDid,
  5. Payload? payload,
  6. String? signatureType,
  7. String? timestamp,
})

Implementation

Request(
    {String? forDid,
    String? displayName,
    String? comment,
    String? fromDid,
    Payload? payload,
    String? signatureType,
    String? timestamp}) {
  if (forDid != null) {
    this._forDid = forDid;
  }
  if (displayName != null) {
    this._displayName = displayName;
  }
  if (comment != null) {
    this._comment = comment;
  }
  if (fromDid != null) {
    this._fromDid = fromDid;
  }
  if (payload != null) {
    this._payload = payload;
  }
  if (signatureType != null) {
    this._signatureType = signatureType;
  }
  if (timestamp != null) {
    this._timestamp = timestamp;
  }
}