import 'package:wow_english/generated/json/base/json_convert_content.dart'; import 'package:wow_english/models/app_config_entity.dart'; AppConfigEntity $AppConfigEntityFromJson(Map json) { final AppConfigEntity appConfigEntity = AppConfigEntity(); final String? safe = jsonConvert.convert(json['safe']); if (safe != null) { appConfigEntity.safe = safe; } final List? customerMobileList = (json['customerMobileList'] as List?) ?.map((e) => jsonConvert.convert(e) as String) .toList(); if (customerMobileList != null) { appConfigEntity.customerMobileList = customerMobileList; } final String? customerQr = jsonConvert.convert(json['customerQr']); if (customerQr != null) { appConfigEntity.customerQr = customerQr; } return appConfigEntity; } Map $AppConfigEntityToJson(AppConfigEntity entity) { final Map data = {}; data['safe'] = entity.safe; data['customerMobileList'] = entity.customerMobileList; data['customerQr'] = entity.customerQr; return data; } extension AppConfigEntityExtension on AppConfigEntity { AppConfigEntity copyWith({ String? safe, List? customerMobileList, String? customerQr, }) { return AppConfigEntity() ..safe = safe ?? this.safe ..customerMobileList = customerMobileList ?? this.customerMobileList ..customerQr = customerQr ?? this.customerQr; } }