Match constructor

Match({
  1. String? matchId,
  2. String? matchProfile,
  3. String? matchFunction,
  4. Iterable<Ticket>? tickets,
  5. Map<String, Any>? extensions,
  6. Backfill? backfill,
  7. bool? allocateGameserver,
})

Implementation

factory Match({
  $core.String? matchId,
  $core.String? matchProfile,
  $core.String? matchFunction,
  $core.Iterable<Ticket>? tickets,
  $core.Map<$core.String, $8.Any>? extensions,
  Backfill? backfill,
  $core.bool? allocateGameserver,
}) {
  final _result = create();
  if (matchId != null) {
    _result.matchId = matchId;
  }
  if (matchProfile != null) {
    _result.matchProfile = matchProfile;
  }
  if (matchFunction != null) {
    _result.matchFunction = matchFunction;
  }
  if (tickets != null) {
    _result.tickets.addAll(tickets);
  }
  if (extensions != null) {
    _result.extensions.addAll(extensions);
  }
  if (backfill != null) {
    _result.backfill = backfill;
  }
  if (allocateGameserver != null) {
    _result.allocateGameserver = allocateGameserver;
  }
  return _result;
}