Attestation constructor

Attestation({
  1. Attestation_Predicate? predicate,
  2. Attestation_Image? image,
  3. Attestation_Commitment? commitment,
})

Implementation

factory Attestation({
  Attestation_Predicate? predicate,
  Attestation_Image? image,
  Attestation_Commitment? commitment,
}) {
  final _result = create();
  if (predicate != null) {
    _result.predicate = predicate;
  }
  if (image != null) {
    _result.image = image;
  }
  if (commitment != null) {
    _result.commitment = commitment;
  }
  return _result;
}