QuotaLimit constructor

QuotaLimit({
  1. String? description,
  2. Int64? defaultLimit,
  3. Int64? maxLimit,
  4. String? duration,
  5. String? name,
  6. Int64? freeTier,
  7. String? metric,
  8. String? unit,
  9. Map<String, Int64>? values,
  10. String? displayName,
})

Implementation

factory QuotaLimit({
  $core.String? description,
  $fixnum.Int64? defaultLimit,
  $fixnum.Int64? maxLimit,
  $core.String? duration,
  $core.String? name,
  $fixnum.Int64? freeTier,
  $core.String? metric,
  $core.String? unit,
  $core.Map<$core.String, $fixnum.Int64>? values,
  $core.String? displayName,
}) {
  final _result = create();
  if (description != null) {
    _result.description = description;
  }
  if (defaultLimit != null) {
    _result.defaultLimit = defaultLimit;
  }
  if (maxLimit != null) {
    _result.maxLimit = maxLimit;
  }
  if (duration != null) {
    _result.duration = duration;
  }
  if (name != null) {
    _result.name = name;
  }
  if (freeTier != null) {
    _result.freeTier = freeTier;
  }
  if (metric != null) {
    _result.metric = metric;
  }
  if (unit != null) {
    _result.unit = unit;
  }
  if (values != null) {
    _result.values.addAll(values);
  }
  if (displayName != null) {
    _result.displayName = displayName;
  }
  return _result;
}