// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'company_branch_flat_dto.dart';

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

_$CompanyBranchFlatDtoImpl _$$CompanyBranchFlatDtoImplFromJson(
        Map<String, dynamic> json) =>
    _$CompanyBranchFlatDtoImpl(
      companyId: (json['company_id'] as num).toInt(),
      companyName: json['company_name'] as String,
      branchId: (json['branch_id'] as num?)?.toInt(),
      branchName: json['branch_name'] as String?,
      companyTypes: (json['company_types'] as List<dynamic>?)
          ?.map((e) => e as String)
          .toList(),
      isPartner: json['is_partner'] as bool? ?? false,
      isCustomer: json['is_customer'] as bool? ?? false,
    );

Map<String, dynamic> _$$CompanyBranchFlatDtoImplToJson(
        _$CompanyBranchFlatDtoImpl instance) =>
    <String, dynamic>{
      'company_id': instance.companyId,
      'company_name': instance.companyName,
      'branch_id': instance.branchId,
      'branch_name': instance.branchName,
      'company_types': instance.companyTypes,
      'is_partner': instance.isPartner,
      'is_customer': instance.isCustomer,
    };
