content: // coverage:ignore-file
  // GENERATED CODE - DO NOT MODIFY BY HAND
  // ignore_for_file: type=lint
  // ignore_for_file: unused_element, unnecessary_cast, override_on_non_overriding_member
  // ignore_for_file: strict_raw_type, inference_failure_on_untyped_parameter
  
  part of 'person.dart';
  
  class PersonMapper extends ClassMapperBase<Person> {
    PersonMapper._();
  
    static PersonMapper? _instance;
    static PersonMapper ensureInitialized() {
      if (_instance == null) {
        MapperContainer.globals.use(_instance = PersonMapper._());
      }
      return _instance!;
    }
  
    @override
    final String id = 'Person';
  
    static String _$name(Person v) => v.name;
    static const Field<Person, String> _f$name = Field('name', _$name);
  
    @override
    final MappableFields<Person> fields = const {#name: _f$name};
  
    static Person _instantiate(DecodingData data) {
      return Person(data.dec(_f$name));
    }
  
    @override
    final Function instantiate = _instantiate;
  
    static Person fromMap(Map<String, dynamic> map) {
      return ensureInitialized().decodeMap<Person>(map);
    }
  
    static Person fromJson(String json) {
      return ensureInitialized().decodeJson<Person>(json);
    }
  }
  
  mixin PersonMappable {
    String toJson() {
      return PersonMapper.ensureInitialized().encodeJson<Person>(this as Person);
    }
  
    Map<String, dynamic> toMap() {
      return PersonMapper.ensureInitialized().encodeMap<Person>(this as Person);
    }
  
    PersonCopyWith<Person, Person, Person> get copyWith =>
        _PersonCopyWithImpl(this as Person, $identity, $identity);
    @override
    String toString() {
      return PersonMapper.ensureInitialized().stringifyValue(this as Person);
    }
  
    @override
    bool operator ==(Object other) {
      return PersonMapper.ensureInitialized().equalsValue(this as Person, other);
    }
  
    @override
    int get hashCode {
      return PersonMapper.ensureInitialized().hashValue(this as Person);
    }
  }
  
  extension PersonValueCopy<$R, $Out> on ObjectCopyWith<$R, Person, $Out> {
    PersonCopyWith<$R, Person, $Out> get $asPerson =>
        $base.as((v, t, t2) => _PersonCopyWithImpl(v, t, t2));
  }
  
  abstract class PersonCopyWith<$R, $In extends Person, $Out>
      implements ClassCopyWith<$R, $In, $Out> {
    $R call({String? name});
    PersonCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t);
  }
  
  class _PersonCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, Person, $Out>
      implements PersonCopyWith<$R, Person, $Out> {
    _PersonCopyWithImpl(super.value, super.then, super.then2);
  
    @override
    late final ClassMapperBase<Person> $mapper = PersonMapper.ensureInitialized();
    @override
    $R call({String? name}) =>
        $apply(FieldCopyWithData({if (name != null) #name: name}));
    @override
    Person $make(CopyWithData data) => Person(data.get(#name, or: $value.name));
  
    @override
    PersonCopyWith<$R2, Person, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) =>
        _PersonCopyWithImpl($value, $cast, t);
  }
  