Caveat constructor

Caveat({
  1. int? caveatVersion,
  2. List<int>? caveatId,
  3. FirstPartyCaveat? firstParty,
  4. ThirdPartyCaveat? thirdParty,
})

Implementation

factory Caveat({
  $core.int? caveatVersion,
  $core.List<$core.int>? caveatId,
  FirstPartyCaveat? firstParty,
  ThirdPartyCaveat? thirdParty,
}) {
  final result = create();
  if (caveatVersion != null) result.caveatVersion = caveatVersion;
  if (caveatId != null) result.caveatId = caveatId;
  if (firstParty != null) result.firstParty = firstParty;
  if (thirdParty != null) result.thirdParty = thirdParty;
  return result;
}