TestDeprecatedLite constructor

TestDeprecatedLite({
  1. @Deprecated('This field is deprecated.') int? deprecatedField,
  2. @Deprecated('This field is deprecated.') int? deprecatedField2,
  3. @Deprecated('This field is deprecated.') String? deprecatedField3,
  4. @Deprecated('This field is deprecated.') TestDeprecatedLite? deprecatedField4,
})

Implementation

factory TestDeprecatedLite({
@$core.Deprecated('This field is deprecated.')
  $core.int? deprecatedField,
@$core.Deprecated('This field is deprecated.')
  $core.int? deprecatedField2,
@$core.Deprecated('This field is deprecated.')
  $core.String? deprecatedField3,
@$core.Deprecated('This field is deprecated.')
  TestDeprecatedLite? deprecatedField4,
}) {
  final _result = create();
  if (deprecatedField != null) {
    // ignore: deprecated_member_use_from_same_package
    _result.deprecatedField = deprecatedField;
  }
  if (deprecatedField2 != null) {
    // ignore: deprecated_member_use_from_same_package
    _result.deprecatedField2 = deprecatedField2;
  }
  if (deprecatedField3 != null) {
    // ignore: deprecated_member_use_from_same_package
    _result.deprecatedField3 = deprecatedField3;
  }
  if (deprecatedField4 != null) {
    // ignore: deprecated_member_use_from_same_package
    _result.deprecatedField4 = deprecatedField4;
  }
  return _result;
}