// GENERATED CODE - DO NOT MODIFY BY HAND part of 'account_suggestion.dart'; // ************************************************************************** // CopyWithGenerator // ************************************************************************** abstract class _$AccountSuggestionCWProxy { AccountSuggestion broker(String? broker); AccountSuggestion id(int id); AccountSuggestion name(String name); AccountSuggestion sourceId(String sourceId); /// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `AccountSuggestion(...).copyWith.fieldName(...)` to override fields one at a time with nullification support. /// /// Usage /// ```dart /// AccountSuggestion(...).copyWith(id: 12, name: "My name") /// ```` AccountSuggestion call({ String? broker, int id, String name, String sourceId, }); } /// Proxy class for `copyWith` functionality. This is a callable class and can be used as follows: `instanceOfAccountSuggestion.copyWith(...)`. Additionally contains functions for specific fields e.g. `instanceOfAccountSuggestion.copyWith.fieldName(...)` class _$AccountSuggestionCWProxyImpl implements _$AccountSuggestionCWProxy { const _$AccountSuggestionCWProxyImpl(this._value); final AccountSuggestion _value; @override AccountSuggestion broker(String? broker) => this(broker: broker); @override AccountSuggestion id(int id) => this(id: id); @override AccountSuggestion name(String name) => this(name: name); @override AccountSuggestion sourceId(String sourceId) => this(sourceId: sourceId); @override /// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `AccountSuggestion(...).copyWith.fieldName(...)` to override fields one at a time with nullification support. /// /// Usage /// ```dart /// AccountSuggestion(...).copyWith(id: 12, name: "My name") /// ```` AccountSuggestion call({ Object? broker = const $CopyWithPlaceholder(), Object? id = const $CopyWithPlaceholder(), Object? name = const $CopyWithPlaceholder(), Object? sourceId = const $CopyWithPlaceholder(), }) { return AccountSuggestion( broker: broker == const $CopyWithPlaceholder() ? _value.broker // ignore: cast_nullable_to_non_nullable : broker as String?, id: id == const $CopyWithPlaceholder() ? _value.id // ignore: cast_nullable_to_non_nullable : id as int, name: name == const $CopyWithPlaceholder() ? _value.name // ignore: cast_nullable_to_non_nullable : name as String, sourceId: sourceId == const $CopyWithPlaceholder() ? _value.sourceId // ignore: cast_nullable_to_non_nullable : sourceId as String, ); } } extension $AccountSuggestionCopyWith on AccountSuggestion { /// Returns a callable class that can be used as follows: `instanceOfAccountSuggestion.copyWith(...)` or like so:`instanceOfAccountSuggestion.copyWith.fieldName(...)`. // ignore: library_private_types_in_public_api _$AccountSuggestionCWProxy get copyWith => _$AccountSuggestionCWProxyImpl(this); } // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** AccountSuggestion _$AccountSuggestionFromJson(Map json) => $checkedCreate('AccountSuggestion', json, ($checkedConvert) { $checkKeys( json, requiredKeys: const ['broker', 'id', 'name', 'source_id'], ); final val = AccountSuggestion( broker: $checkedConvert('broker', (v) => v as String?), id: $checkedConvert('id', (v) => (v as num).toInt()), name: $checkedConvert('name', (v) => v as String), sourceId: $checkedConvert('source_id', (v) => v as String), ); return val; }, fieldKeyMap: const {'sourceId': 'source_id'}); Map _$AccountSuggestionToJson(AccountSuggestion instance) => { 'broker': instance.broker, 'id': instance.id, 'name': instance.name, 'source_id': instance.sourceId, };