import 'enums.dart'; part 'myid_config.g.dart'; class MyIdConfig { final String clientId; final String? clientHash; final String? clientHashId; final String? passportData; final String? dateOfBirth; final int? minAge; final String? sdkHash; final String? externalId; final double? threshold; final MyIdBuildMode? buildMode; final MyIdEntryType? entryType; final MyIdResidentType? residency; final MyIdLocale? locale; final MyIdCameraShape? cameraShape; final MyIdCameraSelector? cameraSelector; final MyIdResolution? resolution; final MyIdImageFormat? imageFormat; final MyIdOrganizationDetails? organizationDetails; final bool? withPhoto; final double? distance; MyIdConfig({ required this.clientId, this.clientHash, this.clientHashId, this.passportData, this.dateOfBirth, this.minAge, this.sdkHash, this.externalId, this.threshold, this.buildMode, this.entryType, this.residency, this.locale, this.cameraShape, this.cameraSelector, this.resolution, this.imageFormat, this.organizationDetails, this.withPhoto, this.distance, }); factory MyIdConfig.fromJson(Map json) => _$MyIdConfigFromJson(json); Map toJson() => _$MyIdConfigToJson(this); } class MyIdResult { final String? code; final String? comparison; final String? base64; MyIdResult({ this.code, this.comparison, this.base64 }); factory MyIdResult.fromJson(Map json) => _$MyIdResultFromJson(json); } class MyIdOrganizationDetails { final String? phone; final String? logo; const MyIdOrganizationDetails({ required this.phone, required this.logo }); factory MyIdOrganizationDetails.fromJson(Map json) => _$MyIdOrganizationDetailsFromJson(json); Map toJson() => _$MyIdOrganizationDetailsToJson(this); } class MyIdIOSAppearance { final String? primaryColor; final String? errorColor; final String? primaryButtonColor; final String? primaryButtonColorDisabled; final String? primaryButtonTextColor; final String? primaryButtonTextColorDisabled; final int? buttonCornerRadius; const MyIdIOSAppearance({ this.primaryColor, this.errorColor, this.primaryButtonColor, this.primaryButtonColorDisabled, this.primaryButtonTextColor, this.primaryButtonTextColorDisabled, this.buttonCornerRadius, }); factory MyIdIOSAppearance.fromJson(Map json) => _$MyIdIOSAppearanceFromJson(json); Map toJson() => _$MyIdIOSAppearanceToJson(this); }