addKey method

void addKey({
  1. dynamic defaultValue,
  2. dynamic disallowNullValue,
  3. dynamic fromJson,
  4. dynamic ignore,
  5. dynamic includeIfNull,
  6. dynamic name,
  7. dynamic nullable,
  8. dynamic required,
  9. dynamic toJson,
  10. dynamic unknownEnumValue,
})

Implementation

void addKey({
  defaultValue,
  disallowNullValue,
  fromJson,
  ignore,
  includeIfNull,
  name,
  nullable,
  required,
  toJson,
  unknownEnumValue,
}) {
  this.defaultValue = defaultValue ?? this.defaultValue;
  this.disallowNullValue = disallowNullValue ?? this.disallowNullValue;
  this.fromJson = fromJson ?? this.fromJson;
  this.ignore = ignore ?? this.ignore;
  this.includeIfNull = includeIfNull ?? this.includeIfNull;
  this.name = name ?? this.name;
  this.nullable = nullable ?? this.nullable;
  this.required = required ?? this.required;
  this.toJson = toJson ?? this.toJson;
  this.unknownEnumValue = unknownEnumValue ?? this.unknownEnumValue;
}