import 'package:domain/generated/json/base/json_convert_content.dart'; import 'package:domain/entity/captcha_img_entity.dart'; CaptchaImgEntity $CaptchaImgEntityFromJson(Map json) { final CaptchaImgEntity captchaImgEntity = CaptchaImgEntity(); final bool? sensitive = jsonConvert.convert(json['sensitive']); if (sensitive != null) { captchaImgEntity.sensitive = sensitive; } final String? key = jsonConvert.convert(json['key']); if (key != null) { captchaImgEntity.key = key; } final String? img = jsonConvert.convert(json['img']); if (img != null) { captchaImgEntity.img = img; } return captchaImgEntity; } Map $CaptchaImgEntityToJson(CaptchaImgEntity entity) { final Map data = {}; data['sensitive'] = entity.sensitive; data['key'] = entity.key; data['img'] = entity.img; return data; } extension CaptchaImgEntityExtension on CaptchaImgEntity { CaptchaImgEntity copyWith({ bool? sensitive, String? key, String? img, }) { return CaptchaImgEntity() ..sensitive = sensitive ?? this.sensitive ..key = key ?? this.key ..img = img ?? this.img; } }