/* Options: Date: 2025-03-15 04:23:36 Version: 8.30 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.sanctionssearch.com/v2 //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AddPepSearch.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; // @DataContract class Authentication implements IConvertible { /** * The API User ID provided by us when you signed up to use our API */ // @DataMember // @ApiMember(Description="The API User ID provided by us when you signed up to use our API", IsRequired=true, ParameterType="header, body") String? apiUserId; /** * The API User Key provided by us when you signed up to use our API */ // @DataMember // @ApiMember(Description="The API User Key provided by us when you signed up to use our API", IsRequired=true, ParameterType="header, body") String? apiUserKey; Authentication({this.apiUserId,this.apiUserKey}); Authentication.fromJson(Map json) { fromMap(json); } fromMap(Map json) { apiUserId = json['apiUserId']; apiUserKey = json['apiUserKey']; return this; } Map toJson() => { 'apiUserId': apiUserId, 'apiUserKey': apiUserKey }; getTypeName() => "Authentication"; TypeContext? context = _ctx; } // @DataContract class BaseRequest implements IBaseRequest, IConvertible { /** * The authentication credentials */ // @DataMember // @ApiMember(Description="The authentication credentials", IsRequired=true, ParameterType="header, body") Authentication? authentication; BaseRequest({this.authentication}); BaseRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { authentication = JsonConverters.fromJson(json['authentication'],'Authentication',context!); return this; } Map toJson() => { 'authentication': JsonConverters.toJson(authentication,'Authentication',context!) }; getTypeName() => "BaseRequest"; TypeContext? context = _ctx; } abstract class IBaseRequest { Authentication? authentication; } class ArrayOfLists extends ListBase implements IConvertible { final List l = []; set length(int newLength) { l.length = newLength; } int get length => l.length; String operator [](int index) => l[index]; void operator []=(int index, String value) { l[index] = value; } ArrayOfLists(); ArrayOfLists.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "ArrayOfLists"; TypeContext? context = _ctx; } class LinkedTo implements IConvertible { int? clientId; int? id; String? type; String? subtype; String? status; String? description; bool? isArchived; String? name; DateTime? date; LinkedTo({this.clientId,this.id,this.type,this.subtype,this.status,this.description,this.isArchived,this.name,this.date}); LinkedTo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { clientId = json['clientId']; id = json['id']; type = json['type']; subtype = json['subtype']; status = json['status']; description = json['description']; isArchived = json['isArchived']; name = json['name']; date = JsonConverters.fromJson(json['date'],'DateTime',context!); return this; } Map toJson() => { 'clientId': clientId, 'id': id, 'type': type, 'subtype': subtype, 'status': status, 'description': description, 'isArchived': isArchived, 'name': name, 'date': JsonConverters.toJson(date,'DateTime',context!) }; getTypeName() => "LinkedTo"; TypeContext? context = _ctx; } class ArrayOfLinkedTo extends ListBase implements IConvertible { final List l = []; set length(int newLength) { l.length = newLength; } int get length => l.length; LinkedTo operator [](int index) => l[index]; void operator []=(int index, LinkedTo value) { l[index] = value; } ArrayOfLinkedTo(); ArrayOfLinkedTo.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "ArrayOfLinkedTo"; TypeContext? context = _ctx; } class AddPepSearchRequest implements IAddSearchRequest, IConvertible { /** * If the search should be saved against a single Sub User account, specify their username here */ // @ApiMember(Description="If the search should be saved against a single Sub User account, specify their username here") String? subUserName; String? type; String? name; String? country; String? address; String? dateOfBirth; String? nationality; String? reference; bool? excludeResults; bool? performSanctionsSearch; bool? dayOneSearch; ArrayOfLists? selectedLists; /** * If the search should be linked to other searches, specify the them here */ // @ApiMember(Description="If the search should be linked to other searches, specify the them here") ArrayOfLinkedTo? linkedTo; AddPepSearchRequest({this.subUserName,this.type,this.name,this.country,this.address,this.dateOfBirth,this.nationality,this.reference,this.excludeResults,this.performSanctionsSearch,this.dayOneSearch,this.selectedLists,this.linkedTo}); AddPepSearchRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { subUserName = json['subUserName']; type = json['type']; name = json['name']; country = json['country']; address = json['address']; dateOfBirth = json['dateOfBirth']; nationality = json['nationality']; reference = json['reference']; excludeResults = json['excludeResults']; performSanctionsSearch = json['performSanctionsSearch']; dayOneSearch = json['dayOneSearch']; selectedLists = JsonConverters.fromJson(json['selectedLists'],'ArrayOfLists',context!); linkedTo = JsonConverters.fromJson(json['linkedTo'],'ArrayOfLinkedTo',context!); return this; } Map toJson() => { 'subUserName': subUserName, 'type': type, 'name': name, 'country': country, 'address': address, 'dateOfBirth': dateOfBirth, 'nationality': nationality, 'reference': reference, 'excludeResults': excludeResults, 'performSanctionsSearch': performSanctionsSearch, 'dayOneSearch': dayOneSearch, 'selectedLists': JsonConverters.toJson(selectedLists,'ArrayOfLists',context!), 'linkedTo': JsonConverters.toJson(linkedTo,'ArrayOfLinkedTo',context!) }; getTypeName() => "AddPepSearchRequest"; TypeContext? context = _ctx; } class BaseResponse implements IBaseDataResponse, IHasResponseStatus, IConvertible { /** * The status of the response */ // @ApiMember(Description="The status of the response") ResponseStatus? responseStatus; BaseResponse({this.responseStatus}); BaseResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "BaseResponse"; TypeContext? context = _ctx; } class SearchCriteria implements IConvertible { String? name; String? address; String? country; String? dateOfBirth; String? nationality; String? reference; SearchCriteria({this.name,this.address,this.country,this.dateOfBirth,this.nationality,this.reference}); SearchCriteria.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; address = json['address']; country = json['country']; dateOfBirth = json['dateOfBirth']; nationality = json['nationality']; reference = json['reference']; return this; } Map toJson() => { 'name': name, 'address': address, 'country': country, 'dateOfBirth': dateOfBirth, 'nationality': nationality, 'reference': reference }; getTypeName() => "SearchCriteria"; TypeContext? context = _ctx; } class PepSearchResultAddress implements IConvertible { String? addressLine1; String? addressLine2; String? addressLine3; String? addressLine4; String? town; String? county; String? postCode; String? country; String? isoCountry; bool? softDelete; DateTime? dateLastUpdated; PepSearchResultAddress({this.addressLine1,this.addressLine2,this.addressLine3,this.addressLine4,this.town,this.county,this.postCode,this.country,this.isoCountry,this.softDelete,this.dateLastUpdated}); PepSearchResultAddress.fromJson(Map json) { fromMap(json); } fromMap(Map json) { addressLine1 = json['addressLine1']; addressLine2 = json['addressLine2']; addressLine3 = json['addressLine3']; addressLine4 = json['addressLine4']; town = json['town']; county = json['county']; postCode = json['postCode']; country = json['country']; isoCountry = json['isoCountry']; softDelete = json['softDelete']; dateLastUpdated = JsonConverters.fromJson(json['dateLastUpdated'],'DateTime',context!); return this; } Map toJson() => { 'addressLine1': addressLine1, 'addressLine2': addressLine2, 'addressLine3': addressLine3, 'addressLine4': addressLine4, 'town': town, 'county': county, 'postCode': postCode, 'country': country, 'isoCountry': isoCountry, 'softDelete': softDelete, 'dateLastUpdated': JsonConverters.toJson(dateLastUpdated,'DateTime',context!) }; getTypeName() => "PepSearchResultAddress"; TypeContext? context = _ctx; } class PepSearchResultAlias implements IConvertible { String? forename; String? middleName; String? surname; bool? softDelete; DateTime? dateOfSoftDelete; DateTime? dateLastUpdated; String? title; String? alternateTitle; String? businessName; PepSearchResultAlias({this.forename,this.middleName,this.surname,this.softDelete,this.dateOfSoftDelete,this.dateLastUpdated,this.title,this.alternateTitle,this.businessName}); PepSearchResultAlias.fromJson(Map json) { fromMap(json); } fromMap(Map json) { forename = json['forename']; middleName = json['middleName']; surname = json['surname']; softDelete = json['softDelete']; dateOfSoftDelete = JsonConverters.fromJson(json['dateOfSoftDelete'],'DateTime',context!); dateLastUpdated = JsonConverters.fromJson(json['dateLastUpdated'],'DateTime',context!); title = json['title']; alternateTitle = json['alternateTitle']; businessName = json['businessName']; return this; } Map toJson() => { 'forename': forename, 'middleName': middleName, 'surname': surname, 'softDelete': softDelete, 'dateOfSoftDelete': JsonConverters.toJson(dateOfSoftDelete,'DateTime',context!), 'dateLastUpdated': JsonConverters.toJson(dateLastUpdated,'DateTime',context!), 'title': title, 'alternateTitle': alternateTitle, 'businessName': businessName }; getTypeName() => "PepSearchResultAlias"; TypeContext? context = _ctx; } class PepSearchResultArticleSnippet implements IConvertible { String? title; String? text; String? adverseTerms; PepSearchResultArticleSnippet({this.title,this.text,this.adverseTerms}); PepSearchResultArticleSnippet.fromJson(Map json) { fromMap(json); } fromMap(Map json) { title = json['title']; text = json['text']; adverseTerms = json['adverseTerms']; return this; } Map toJson() => { 'title': title, 'text': text, 'adverseTerms': adverseTerms }; getTypeName() => "PepSearchResultArticleSnippet"; TypeContext? context = _ctx; } class PepSearchResultArticle implements IConvertible { String? url; String? originalUrl; String? source; DateTime? dateOfCapture; DateTime? dateLastUpdated; List? snippets; PepSearchResultArticle({this.url,this.originalUrl,this.source,this.dateOfCapture,this.dateLastUpdated,this.snippets}); PepSearchResultArticle.fromJson(Map json) { fromMap(json); } fromMap(Map json) { url = json['url']; originalUrl = json['originalUrl']; source = json['source']; dateOfCapture = JsonConverters.fromJson(json['dateOfCapture'],'DateTime',context!); dateLastUpdated = JsonConverters.fromJson(json['dateLastUpdated'],'DateTime',context!); snippets = JsonConverters.fromJson(json['snippets'],'List',context!); return this; } Map toJson() => { 'url': url, 'originalUrl': originalUrl, 'source': source, 'dateOfCapture': JsonConverters.toJson(dateOfCapture,'DateTime',context!), 'dateLastUpdated': JsonConverters.toJson(dateLastUpdated,'DateTime',context!), 'snippets': JsonConverters.toJson(snippets,'List',context!) }; getTypeName() => "PepSearchResultArticle"; TypeContext? context = _ctx; } class PepSearchResultIndividualAssociation implements IConvertible { String? linkDescription; bool? softDelete; DateTime? dateLastUpdated; String? fullName; PepSearchResultIndividualAssociation({this.linkDescription,this.softDelete,this.dateLastUpdated,this.fullName}); PepSearchResultIndividualAssociation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { linkDescription = json['linkDescription']; softDelete = json['softDelete']; dateLastUpdated = JsonConverters.fromJson(json['dateLastUpdated'],'DateTime',context!); fullName = json['fullName']; return this; } Map toJson() => { 'linkDescription': linkDescription, 'softDelete': softDelete, 'dateLastUpdated': JsonConverters.toJson(dateLastUpdated,'DateTime',context!), 'fullName': fullName }; getTypeName() => "PepSearchResultIndividualAssociation"; TypeContext? context = _ctx; } class PepSearchResultBusinessAssociation implements IConvertible { String? linkDescription; bool? softDelete; DateTime? dateLastUpdated; String? businessName; PepSearchResultBusinessAssociation({this.linkDescription,this.softDelete,this.dateLastUpdated,this.businessName}); PepSearchResultBusinessAssociation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { linkDescription = json['linkDescription']; softDelete = json['softDelete']; dateLastUpdated = JsonConverters.fromJson(json['dateLastUpdated'],'DateTime',context!); businessName = json['businessName']; return this; } Map toJson() => { 'linkDescription': linkDescription, 'softDelete': softDelete, 'dateLastUpdated': JsonConverters.toJson(dateLastUpdated,'DateTime',context!), 'businessName': businessName }; getTypeName() => "PepSearchResultBusinessAssociation"; TypeContext? context = _ctx; } class PepSearchResultNote implements IConvertible { String? source; String? notes; bool? softDelete; DateTime? dateLastUpdated; PepSearchResultNote({this.source,this.notes,this.softDelete,this.dateLastUpdated}); PepSearchResultNote.fromJson(Map json) { fromMap(json); } fromMap(Map json) { source = json['source']; notes = json['notes']; softDelete = json['softDelete']; dateLastUpdated = JsonConverters.fromJson(json['dateLastUpdated'],'DateTime',context!); return this; } Map toJson() => { 'source': source, 'notes': notes, 'softDelete': softDelete, 'dateLastUpdated': JsonConverters.toJson(dateLastUpdated,'DateTime',context!) }; getTypeName() => "PepSearchResultNote"; TypeContext? context = _ctx; } class PepSearchResultPoliticalPosition implements IConvertible { String? description; String? from; String? to; String? country; bool? softDelete; DateTime? dateLastUpdated; PepSearchResultPoliticalPosition({this.description,this.from,this.to,this.country,this.softDelete,this.dateLastUpdated}); PepSearchResultPoliticalPosition.fromJson(Map json) { fromMap(json); } fromMap(Map json) { description = json['description']; from = json['from']; to = json['to']; country = json['country']; softDelete = json['softDelete']; dateLastUpdated = JsonConverters.fromJson(json['dateLastUpdated'],'DateTime',context!); return this; } Map toJson() => { 'description': description, 'from': from, 'to': to, 'country': country, 'softDelete': softDelete, 'dateLastUpdated': JsonConverters.toJson(dateLastUpdated,'DateTime',context!) }; getTypeName() => "PepSearchResultPoliticalPosition"; TypeContext? context = _ctx; } class PepSearchResult implements IConvertible { double? resultSimilarity; bool? resultResolved; DateTime? dateLastUpdated; bool? resultIsClient; int? id; String? type; String? title; String? forename; String? middlename; String? surname; bool? softDelete; DateTime? dateOfSoftDelete; DateTime? dateOfCapture; DateTime? dateOfBirth; DateTime? dateOfDeath; int? yearOfBirth; int? yearOfDeath; String? gender; String? homeTelephone; String? businessTelephone; String? mobileTelephone; String? fax; String? email; String? nationality; String? source; String? category; String? picture; String? alternateTitle; String? businessName; String? description; String? telephone; String? website; int? pepTier; List? addresses; List? aliases; List? articles; List? associations; List? businessAssociations; List? notes; List? politicalPositions; PepSearchResult({this.resultSimilarity,this.resultResolved,this.dateLastUpdated,this.resultIsClient,this.id,this.type,this.title,this.forename,this.middlename,this.surname,this.softDelete,this.dateOfSoftDelete,this.dateOfCapture,this.dateOfBirth,this.dateOfDeath,this.yearOfBirth,this.yearOfDeath,this.gender,this.homeTelephone,this.businessTelephone,this.mobileTelephone,this.fax,this.email,this.nationality,this.source,this.category,this.picture,this.alternateTitle,this.businessName,this.description,this.telephone,this.website,this.pepTier,this.addresses,this.aliases,this.articles,this.associations,this.businessAssociations,this.notes,this.politicalPositions}); PepSearchResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { resultSimilarity = JsonConverters.toDouble(json['resultSimilarity']); resultResolved = json['resultResolved']; dateLastUpdated = JsonConverters.fromJson(json['dateLastUpdated'],'DateTime',context!); resultIsClient = json['resultIsClient']; id = json['id']; type = json['type']; title = json['title']; forename = json['forename']; middlename = json['middlename']; surname = json['surname']; softDelete = json['softDelete']; dateOfSoftDelete = JsonConverters.fromJson(json['dateOfSoftDelete'],'DateTime',context!); dateOfCapture = JsonConverters.fromJson(json['dateOfCapture'],'DateTime',context!); dateOfBirth = JsonConverters.fromJson(json['dateOfBirth'],'DateTime',context!); dateOfDeath = JsonConverters.fromJson(json['dateOfDeath'],'DateTime',context!); yearOfBirth = json['yearOfBirth']; yearOfDeath = json['yearOfDeath']; gender = json['gender']; homeTelephone = json['homeTelephone']; businessTelephone = json['businessTelephone']; mobileTelephone = json['mobileTelephone']; fax = json['fax']; email = json['email']; nationality = json['nationality']; source = json['source']; category = json['category']; picture = json['picture']; alternateTitle = json['alternateTitle']; businessName = json['businessName']; description = json['description']; telephone = json['telephone']; website = json['website']; pepTier = json['pepTier']; addresses = JsonConverters.fromJson(json['addresses'],'List',context!); aliases = JsonConverters.fromJson(json['aliases'],'List',context!); articles = JsonConverters.fromJson(json['articles'],'List',context!); associations = JsonConverters.fromJson(json['associations'],'List',context!); businessAssociations = JsonConverters.fromJson(json['businessAssociations'],'List',context!); notes = JsonConverters.fromJson(json['notes'],'List',context!); politicalPositions = JsonConverters.fromJson(json['politicalPositions'],'List',context!); return this; } Map toJson() => { 'resultSimilarity': resultSimilarity, 'resultResolved': resultResolved, 'dateLastUpdated': JsonConverters.toJson(dateLastUpdated,'DateTime',context!), 'resultIsClient': resultIsClient, 'id': id, 'type': type, 'title': title, 'forename': forename, 'middlename': middlename, 'surname': surname, 'softDelete': softDelete, 'dateOfSoftDelete': JsonConverters.toJson(dateOfSoftDelete,'DateTime',context!), 'dateOfCapture': JsonConverters.toJson(dateOfCapture,'DateTime',context!), 'dateOfBirth': JsonConverters.toJson(dateOfBirth,'DateTime',context!), 'dateOfDeath': JsonConverters.toJson(dateOfDeath,'DateTime',context!), 'yearOfBirth': yearOfBirth, 'yearOfDeath': yearOfDeath, 'gender': gender, 'homeTelephone': homeTelephone, 'businessTelephone': businessTelephone, 'mobileTelephone': mobileTelephone, 'fax': fax, 'email': email, 'nationality': nationality, 'source': source, 'category': category, 'picture': picture, 'alternateTitle': alternateTitle, 'businessName': businessName, 'description': description, 'telephone': telephone, 'website': website, 'pepTier': pepTier, 'addresses': JsonConverters.toJson(addresses,'List',context!), 'aliases': JsonConverters.toJson(aliases,'List',context!), 'articles': JsonConverters.toJson(articles,'List',context!), 'associations': JsonConverters.toJson(associations,'List',context!), 'businessAssociations': JsonConverters.toJson(businessAssociations,'List',context!), 'notes': JsonConverters.toJson(notes,'List',context!), 'politicalPositions': JsonConverters.toJson(politicalPositions,'List',context!) }; getTypeName() => "PepSearchResult"; TypeContext? context = _ctx; } class PepSearchResults implements IConvertible { List? results; PepSearchResults({this.results}); PepSearchResults.fromJson(Map json) { fromMap(json); } fromMap(Map json) { results = JsonConverters.fromJson(json['results'],'List',context!); return this; } Map toJson() => { 'results': JsonConverters.toJson(results,'List',context!) }; getTypeName() => "PepSearchResults"; TypeContext? context = _ctx; } class PepSearchRecord implements IConvertible { int? id; String? searchType; DateTime? dateSearched; DateTime? dateUpdated; DateTime? dateRenewal; DateTime? dateArchived; bool? isArchived; int? numOfResults; bool? clientInResults; bool? clientNotInResults; bool? affectedByUpdate; bool? isDayOneSearch; SearchCriteria? searchCriteria; PepSearchResults? searchResults; PepSearchRecord({this.id,this.searchType,this.dateSearched,this.dateUpdated,this.dateRenewal,this.dateArchived,this.isArchived,this.numOfResults,this.clientInResults,this.clientNotInResults,this.affectedByUpdate,this.isDayOneSearch,this.searchCriteria,this.searchResults}); PepSearchRecord.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; searchType = json['searchType']; dateSearched = JsonConverters.fromJson(json['dateSearched'],'DateTime',context!); dateUpdated = JsonConverters.fromJson(json['dateUpdated'],'DateTime',context!); dateRenewal = JsonConverters.fromJson(json['dateRenewal'],'DateTime',context!); dateArchived = JsonConverters.fromJson(json['dateArchived'],'DateTime',context!); isArchived = json['isArchived']; numOfResults = json['numOfResults']; clientInResults = json['clientInResults']; clientNotInResults = json['clientNotInResults']; affectedByUpdate = json['affectedByUpdate']; isDayOneSearch = json['isDayOneSearch']; searchCriteria = JsonConverters.fromJson(json['searchCriteria'],'SearchCriteria',context!); searchResults = JsonConverters.fromJson(json['searchResults'],'PepSearchResults',context!); return this; } Map toJson() => { 'id': id, 'searchType': searchType, 'dateSearched': JsonConverters.toJson(dateSearched,'DateTime',context!), 'dateUpdated': JsonConverters.toJson(dateUpdated,'DateTime',context!), 'dateRenewal': JsonConverters.toJson(dateRenewal,'DateTime',context!), 'dateArchived': JsonConverters.toJson(dateArchived,'DateTime',context!), 'isArchived': isArchived, 'numOfResults': numOfResults, 'clientInResults': clientInResults, 'clientNotInResults': clientNotInResults, 'affectedByUpdate': affectedByUpdate, 'isDayOneSearch': isDayOneSearch, 'searchCriteria': JsonConverters.toJson(searchCriteria,'SearchCriteria',context!), 'searchResults': JsonConverters.toJson(searchResults,'PepSearchResults',context!) }; getTypeName() => "PepSearchRecord"; TypeContext? context = _ctx; } class SearchResultEuAddress implements IConvertible { String? street; String? city; String? country; String? postCode; String? other; SearchResultEuAddress({this.street,this.city,this.country,this.postCode,this.other}); SearchResultEuAddress.fromJson(Map json) { fromMap(json); } fromMap(Map json) { street = json['street']; city = json['city']; country = json['country']; postCode = json['postCode']; other = json['other']; return this; } Map toJson() => { 'street': street, 'city': city, 'country': country, 'postCode': postCode, 'other': other }; getTypeName() => "SearchResultEuAddress"; TypeContext? context = _ctx; } class SearchResultEuBirth implements IConvertible { String? date; String? place; String? country; SearchResultEuBirth({this.date,this.place,this.country}); SearchResultEuBirth.fromJson(Map json) { fromMap(json); } fromMap(Map json) { date = json['date']; place = json['place']; country = json['country']; return this; } Map toJson() => { 'date': date, 'place': place, 'country': country }; getTypeName() => "SearchResultEuBirth"; TypeContext? context = _ctx; } class SearchResultOfacEuCitizenship implements IConvertible { String? country; SearchResultOfacEuCitizenship({this.country}); SearchResultOfacEuCitizenship.fromJson(Map json) { fromMap(json); } fromMap(Map json) { country = json['country']; return this; } Map toJson() => { 'country': country }; getTypeName() => "SearchResultOfacEuCitizenship"; TypeContext? context = _ctx; } class SearchResultEuName implements IConvertible { String? fullName; String? gender; SearchResultEuName({this.fullName,this.gender}); SearchResultEuName.fromJson(Map json) { fromMap(json); } fromMap(Map json) { fullName = json['fullName']; gender = json['gender']; return this; } Map toJson() => { 'fullName': fullName, 'gender': gender }; getTypeName() => "SearchResultEuName"; TypeContext? context = _ctx; } class SearchResultEuPassport implements IConvertible { String? number; String? country; SearchResultEuPassport({this.number,this.country}); SearchResultEuPassport.fromJson(Map json) { fromMap(json); } fromMap(Map json) { number = json['number']; country = json['country']; return this; } Map toJson() => { 'number': number, 'country': country }; getTypeName() => "SearchResultEuPassport"; TypeContext? context = _ctx; } class SearchResultEu implements IConvertible { int? resultStrength; double? resultSimilarity; bool? resultResolved; String? resultType; DateTime? dateUpdated; List? addresses; List? births; List? citizenships; List? names; List? passports; SearchResultEu({this.resultStrength,this.resultSimilarity,this.resultResolved,this.resultType,this.dateUpdated,this.addresses,this.births,this.citizenships,this.names,this.passports}); SearchResultEu.fromJson(Map json) { fromMap(json); } fromMap(Map json) { resultStrength = json['resultStrength']; resultSimilarity = JsonConverters.toDouble(json['resultSimilarity']); resultResolved = json['resultResolved']; resultType = json['resultType']; dateUpdated = JsonConverters.fromJson(json['dateUpdated'],'DateTime',context!); addresses = JsonConverters.fromJson(json['addresses'],'List',context!); births = JsonConverters.fromJson(json['births'],'List',context!); citizenships = JsonConverters.fromJson(json['citizenships'],'List',context!); names = JsonConverters.fromJson(json['names'],'List',context!); passports = JsonConverters.fromJson(json['passports'],'List',context!); return this; } Map toJson() => { 'resultStrength': resultStrength, 'resultSimilarity': resultSimilarity, 'resultResolved': resultResolved, 'resultType': resultType, 'dateUpdated': JsonConverters.toJson(dateUpdated,'DateTime',context!), 'addresses': JsonConverters.toJson(addresses,'List',context!), 'births': JsonConverters.toJson(births,'List',context!), 'citizenships': JsonConverters.toJson(citizenships,'List',context!), 'names': JsonConverters.toJson(names,'List',context!), 'passports': JsonConverters.toJson(passports,'List',context!) }; getTypeName() => "SearchResultEu"; TypeContext? context = _ctx; } class SearchResultHmTreasury implements IConvertible { int? resultStrength; double? resultSimilarity; bool? resultResolved; String? resultType; DateTime? dateListed; DateTime? dateUpdated; String? name1; String? name2; String? name3; String? name4; String? name5; String? name6; String? dateOfBirth; String? countryOfBirth; String? nationality; String? address1; String? address2; String? address3; String? address4; String? address5; String? address6; String? postCode; String? country; SearchResultHmTreasury({this.resultStrength,this.resultSimilarity,this.resultResolved,this.resultType,this.dateListed,this.dateUpdated,this.name1,this.name2,this.name3,this.name4,this.name5,this.name6,this.dateOfBirth,this.countryOfBirth,this.nationality,this.address1,this.address2,this.address3,this.address4,this.address5,this.address6,this.postCode,this.country}); SearchResultHmTreasury.fromJson(Map json) { fromMap(json); } fromMap(Map json) { resultStrength = json['resultStrength']; resultSimilarity = JsonConverters.toDouble(json['resultSimilarity']); resultResolved = json['resultResolved']; resultType = json['resultType']; dateListed = JsonConverters.fromJson(json['dateListed'],'DateTime',context!); dateUpdated = JsonConverters.fromJson(json['dateUpdated'],'DateTime',context!); name1 = json['name1']; name2 = json['name2']; name3 = json['name3']; name4 = json['name4']; name5 = json['name5']; name6 = json['name6']; dateOfBirth = json['dateOfBirth']; countryOfBirth = json['countryOfBirth']; nationality = json['nationality']; address1 = json['address1']; address2 = json['address2']; address3 = json['address3']; address4 = json['address4']; address5 = json['address5']; address6 = json['address6']; postCode = json['postCode']; country = json['country']; return this; } Map toJson() => { 'resultStrength': resultStrength, 'resultSimilarity': resultSimilarity, 'resultResolved': resultResolved, 'resultType': resultType, 'dateListed': JsonConverters.toJson(dateListed,'DateTime',context!), 'dateUpdated': JsonConverters.toJson(dateUpdated,'DateTime',context!), 'name1': name1, 'name2': name2, 'name3': name3, 'name4': name4, 'name5': name5, 'name6': name6, 'dateOfBirth': dateOfBirth, 'countryOfBirth': countryOfBirth, 'nationality': nationality, 'address1': address1, 'address2': address2, 'address3': address3, 'address4': address4, 'address5': address5, 'address6': address6, 'postCode': postCode, 'country': country }; getTypeName() => "SearchResultHmTreasury"; TypeContext? context = _ctx; } class SearchResultOfacAddress implements IConvertible { String? address1; String? address2; String? address3; String? city; String? state; String? postCode; String? country; SearchResultOfacAddress({this.address1,this.address2,this.address3,this.city,this.state,this.postCode,this.country}); SearchResultOfacAddress.fromJson(Map json) { fromMap(json); } fromMap(Map json) { address1 = json['address1']; address2 = json['address2']; address3 = json['address3']; city = json['city']; state = json['state']; postCode = json['postCode']; country = json['country']; return this; } Map toJson() => { 'address1': address1, 'address2': address2, 'address3': address3, 'city': city, 'state': state, 'postCode': postCode, 'country': country }; getTypeName() => "SearchResultOfacAddress"; TypeContext? context = _ctx; } class SearchResultOfacAka implements IConvertible { String? firstName; String? lastName; String? type; String? strength; SearchResultOfacAka({this.firstName,this.lastName,this.type,this.strength}); SearchResultOfacAka.fromJson(Map json) { fromMap(json); } fromMap(Map json) { firstName = json['firstName']; lastName = json['lastName']; type = json['type']; strength = json['strength']; return this; } Map toJson() => { 'firstName': firstName, 'lastName': lastName, 'type': type, 'strength': strength }; getTypeName() => "SearchResultOfacAka"; TypeContext? context = _ctx; } class SearchResultOfacDateOfBirth implements IConvertible { String? dateOfBirth; SearchResultOfacDateOfBirth({this.dateOfBirth}); SearchResultOfacDateOfBirth.fromJson(Map json) { fromMap(json); } fromMap(Map json) { dateOfBirth = json['dateOfBirth']; return this; } Map toJson() => { 'dateOfBirth': dateOfBirth }; getTypeName() => "SearchResultOfacDateOfBirth"; TypeContext? context = _ctx; } class SearchResultOfacNationality implements IConvertible { String? country; SearchResultOfacNationality({this.country}); SearchResultOfacNationality.fromJson(Map json) { fromMap(json); } fromMap(Map json) { country = json['country']; return this; } Map toJson() => { 'country': country }; getTypeName() => "SearchResultOfacNationality"; TypeContext? context = _ctx; } class SearchResultOfacPlaceOfBirth implements IConvertible { String? placeOfBirth; SearchResultOfacPlaceOfBirth({this.placeOfBirth}); SearchResultOfacPlaceOfBirth.fromJson(Map json) { fromMap(json); } fromMap(Map json) { placeOfBirth = json['placeOfBirth']; return this; } Map toJson() => { 'placeOfBirth': placeOfBirth }; getTypeName() => "SearchResultOfacPlaceOfBirth"; TypeContext? context = _ctx; } class SearchResultOfac implements IConvertible { int? resultStrength; double? resultSimilarity; bool? resultResolved; String? resultType; DateTime? dateUpdated; String? firstName; String? lastName; List? addresses; List? akas; List? dateOfBirths; List? nationalities; List? placeOfBirths; SearchResultOfac({this.resultStrength,this.resultSimilarity,this.resultResolved,this.resultType,this.dateUpdated,this.firstName,this.lastName,this.addresses,this.akas,this.dateOfBirths,this.nationalities,this.placeOfBirths}); SearchResultOfac.fromJson(Map json) { fromMap(json); } fromMap(Map json) { resultStrength = json['resultStrength']; resultSimilarity = JsonConverters.toDouble(json['resultSimilarity']); resultResolved = json['resultResolved']; resultType = json['resultType']; dateUpdated = JsonConverters.fromJson(json['dateUpdated'],'DateTime',context!); firstName = json['firstName']; lastName = json['lastName']; addresses = JsonConverters.fromJson(json['addresses'],'List',context!); akas = JsonConverters.fromJson(json['akas'],'List',context!); dateOfBirths = JsonConverters.fromJson(json['dateOfBirths'],'List',context!); nationalities = JsonConverters.fromJson(json['nationalities'],'List',context!); placeOfBirths = JsonConverters.fromJson(json['placeOfBirths'],'List',context!); return this; } Map toJson() => { 'resultStrength': resultStrength, 'resultSimilarity': resultSimilarity, 'resultResolved': resultResolved, 'resultType': resultType, 'dateUpdated': JsonConverters.toJson(dateUpdated,'DateTime',context!), 'firstName': firstName, 'lastName': lastName, 'addresses': JsonConverters.toJson(addresses,'List',context!), 'akas': JsonConverters.toJson(akas,'List',context!), 'dateOfBirths': JsonConverters.toJson(dateOfBirths,'List',context!), 'nationalities': JsonConverters.toJson(nationalities,'List',context!), 'placeOfBirths': JsonConverters.toJson(placeOfBirths,'List',context!) }; getTypeName() => "SearchResultOfac"; TypeContext? context = _ctx; } class SearchResultDfat implements IConvertible { int? resultStrength; double? resultSimilarity; bool? resultResolved; String? resultType; DateTime? dateUpdated; String? fullName; String? address; String? dateOfBirth; String? placeOfBirth; String? nationality; SearchResultDfat({this.resultStrength,this.resultSimilarity,this.resultResolved,this.resultType,this.dateUpdated,this.fullName,this.address,this.dateOfBirth,this.placeOfBirth,this.nationality}); SearchResultDfat.fromJson(Map json) { fromMap(json); } fromMap(Map json) { resultStrength = json['resultStrength']; resultSimilarity = JsonConverters.toDouble(json['resultSimilarity']); resultResolved = json['resultResolved']; resultType = json['resultType']; dateUpdated = JsonConverters.fromJson(json['dateUpdated'],'DateTime',context!); fullName = json['fullName']; address = json['address']; dateOfBirth = json['dateOfBirth']; placeOfBirth = json['placeOfBirth']; nationality = json['nationality']; return this; } Map toJson() => { 'resultStrength': resultStrength, 'resultSimilarity': resultSimilarity, 'resultResolved': resultResolved, 'resultType': resultType, 'dateUpdated': JsonConverters.toJson(dateUpdated,'DateTime',context!), 'fullName': fullName, 'address': address, 'dateOfBirth': dateOfBirth, 'placeOfBirth': placeOfBirth, 'nationality': nationality }; getTypeName() => "SearchResultDfat"; TypeContext? context = _ctx; } class SearchResultOsfi implements IConvertible { int? resultStrength; double? resultSimilarity; bool? resultResolved; String? resultType; DateTime? dateUpdated; String? fullName; String? address; String? dateOfBirth; String? placeOfBirth; String? nationality; SearchResultOsfi({this.resultStrength,this.resultSimilarity,this.resultResolved,this.resultType,this.dateUpdated,this.fullName,this.address,this.dateOfBirth,this.placeOfBirth,this.nationality}); SearchResultOsfi.fromJson(Map json) { fromMap(json); } fromMap(Map json) { resultStrength = json['resultStrength']; resultSimilarity = JsonConverters.toDouble(json['resultSimilarity']); resultResolved = json['resultResolved']; resultType = json['resultType']; dateUpdated = JsonConverters.fromJson(json['dateUpdated'],'DateTime',context!); fullName = json['fullName']; address = json['address']; dateOfBirth = json['dateOfBirth']; placeOfBirth = json['placeOfBirth']; nationality = json['nationality']; return this; } Map toJson() => { 'resultStrength': resultStrength, 'resultSimilarity': resultSimilarity, 'resultResolved': resultResolved, 'resultType': resultType, 'dateUpdated': JsonConverters.toJson(dateUpdated,'DateTime',context!), 'fullName': fullName, 'address': address, 'dateOfBirth': dateOfBirth, 'placeOfBirth': placeOfBirth, 'nationality': nationality }; getTypeName() => "SearchResultOsfi"; TypeContext? context = _ctx; } class SearchResultCanadianJustice implements IConvertible { int? resultStrength; double? resultSimilarity; bool? resultResolved; String? resultType; DateTime? dateUpdated; String? name; String? dateOfBirth; String? country; int? refId; SearchResultCanadianJustice({this.resultStrength,this.resultSimilarity,this.resultResolved,this.resultType,this.dateUpdated,this.name,this.dateOfBirth,this.country,this.refId}); SearchResultCanadianJustice.fromJson(Map json) { fromMap(json); } fromMap(Map json) { resultStrength = json['resultStrength']; resultSimilarity = JsonConverters.toDouble(json['resultSimilarity']); resultResolved = json['resultResolved']; resultType = json['resultType']; dateUpdated = JsonConverters.fromJson(json['dateUpdated'],'DateTime',context!); name = json['name']; dateOfBirth = json['dateOfBirth']; country = json['country']; refId = json['refId']; return this; } Map toJson() => { 'resultStrength': resultStrength, 'resultSimilarity': resultSimilarity, 'resultResolved': resultResolved, 'resultType': resultType, 'dateUpdated': JsonConverters.toJson(dateUpdated,'DateTime',context!), 'name': name, 'dateOfBirth': dateOfBirth, 'country': country, 'refId': refId }; getTypeName() => "SearchResultCanadianJustice"; TypeContext? context = _ctx; } class SearchResultCanadianSema implements IConvertible { int? resultStrength; double? resultSimilarity; bool? resultResolved; String? resultType; DateTime? dateUpdated; String? name; String? dateOfBirth; String? country; String? schedule; String? item; SearchResultCanadianSema({this.resultStrength,this.resultSimilarity,this.resultResolved,this.resultType,this.dateUpdated,this.name,this.dateOfBirth,this.country,this.schedule,this.item}); SearchResultCanadianSema.fromJson(Map json) { fromMap(json); } fromMap(Map json) { resultStrength = json['resultStrength']; resultSimilarity = JsonConverters.toDouble(json['resultSimilarity']); resultResolved = json['resultResolved']; resultType = json['resultType']; dateUpdated = JsonConverters.fromJson(json['dateUpdated'],'DateTime',context!); name = json['name']; dateOfBirth = json['dateOfBirth']; country = json['country']; schedule = json['schedule']; item = json['item']; return this; } Map toJson() => { 'resultStrength': resultStrength, 'resultSimilarity': resultSimilarity, 'resultResolved': resultResolved, 'resultType': resultType, 'dateUpdated': JsonConverters.toJson(dateUpdated,'DateTime',context!), 'name': name, 'dateOfBirth': dateOfBirth, 'country': country, 'schedule': schedule, 'item': item }; getTypeName() => "SearchResultCanadianSema"; TypeContext? context = _ctx; } class SearchResultAddress implements IConvertible { int? searchResultAddressId; String? type; String? address1; String? address2; String? address3; String? city; String? county; String? postCode; String? country; SearchResultAddress({this.searchResultAddressId,this.type,this.address1,this.address2,this.address3,this.city,this.county,this.postCode,this.country}); SearchResultAddress.fromJson(Map json) { fromMap(json); } fromMap(Map json) { searchResultAddressId = json['searchResultAddressId']; type = json['type']; address1 = json['address1']; address2 = json['address2']; address3 = json['address3']; city = json['city']; county = json['county']; postCode = json['postCode']; country = json['country']; return this; } Map toJson() => { 'searchResultAddressId': searchResultAddressId, 'type': type, 'address1': address1, 'address2': address2, 'address3': address3, 'city': city, 'county': county, 'postCode': postCode, 'country': country }; getTypeName() => "SearchResultAddress"; TypeContext? context = _ctx; } class SearchResultDateOfBirth implements IConvertible { int? searchResultDateOfBirthId; String? dateOfBirth; int? year; int? month; int? day; String? type; SearchResultDateOfBirth({this.searchResultDateOfBirthId,this.dateOfBirth,this.year,this.month,this.day,this.type}); SearchResultDateOfBirth.fromJson(Map json) { fromMap(json); } fromMap(Map json) { searchResultDateOfBirthId = json['searchResultDateOfBirthId']; dateOfBirth = json['dateOfBirth']; year = json['year']; month = json['month']; day = json['day']; type = json['type']; return this; } Map toJson() => { 'searchResultDateOfBirthId': searchResultDateOfBirthId, 'dateOfBirth': dateOfBirth, 'year': year, 'month': month, 'day': day, 'type': type }; getTypeName() => "SearchResultDateOfBirth"; TypeContext? context = _ctx; } class SearchResultName implements IConvertible { int? searchResultNameId; String? type; String? title; String? fullName; double? resultSimilarity; SearchResultName({this.searchResultNameId,this.type,this.title,this.fullName,this.resultSimilarity}); SearchResultName.fromJson(Map json) { fromMap(json); } fromMap(Map json) { searchResultNameId = json['searchResultNameId']; type = json['type']; title = json['title']; fullName = json['fullName']; resultSimilarity = JsonConverters.toDouble(json['resultSimilarity']); return this; } Map toJson() => { 'searchResultNameId': searchResultNameId, 'type': type, 'title': title, 'fullName': fullName, 'resultSimilarity': resultSimilarity }; getTypeName() => "SearchResultName"; TypeContext? context = _ctx; } class SearchResultNationality implements IConvertible { int? searchResultNationalityId; String? nationality; SearchResultNationality({this.searchResultNationalityId,this.nationality}); SearchResultNationality.fromJson(Map json) { fromMap(json); } fromMap(Map json) { searchResultNationalityId = json['searchResultNationalityId']; nationality = json['nationality']; return this; } Map toJson() => { 'searchResultNationalityId': searchResultNationalityId, 'nationality': nationality }; getTypeName() => "SearchResultNationality"; TypeContext? context = _ctx; } class SearchResultPlaceOfBirth implements IConvertible { int? searchResultPlaceOfBirthId; String? placeOfBirth; String? countryOfBirth; SearchResultPlaceOfBirth({this.searchResultPlaceOfBirthId,this.placeOfBirth,this.countryOfBirth}); SearchResultPlaceOfBirth.fromJson(Map json) { fromMap(json); } fromMap(Map json) { searchResultPlaceOfBirthId = json['searchResultPlaceOfBirthId']; placeOfBirth = json['placeOfBirth']; countryOfBirth = json['countryOfBirth']; return this; } Map toJson() => { 'searchResultPlaceOfBirthId': searchResultPlaceOfBirthId, 'placeOfBirth': placeOfBirth, 'countryOfBirth': countryOfBirth }; getTypeName() => "SearchResultPlaceOfBirth"; TypeContext? context = _ctx; } class SearchResultRemark implements IConvertible { int? searchResultRemarkId; String? name; String? description; SearchResultRemark({this.searchResultRemarkId,this.name,this.description}); SearchResultRemark.fromJson(Map json) { fromMap(json); } fromMap(Map json) { searchResultRemarkId = json['searchResultRemarkId']; name = json['name']; description = json['description']; return this; } Map toJson() => { 'searchResultRemarkId': searchResultRemarkId, 'name': name, 'description': description }; getTypeName() => "SearchResultRemark"; TypeContext? context = _ctx; } class SearchResultEntry implements IConvertible { int? searchResultId; int? resultStrength; double? resultSimilarity; bool? resultResolved; String? resultType; DateTime? dateUpdated; String? sanctionsListId; String? sanctionsListName; List? addresses; List? datesOfBirth; List? names; List? nationalities; List? placesOfBirth; List? remarks; SearchResultEntry({this.searchResultId,this.resultStrength,this.resultSimilarity,this.resultResolved,this.resultType,this.dateUpdated,this.sanctionsListId,this.sanctionsListName,this.addresses,this.datesOfBirth,this.names,this.nationalities,this.placesOfBirth,this.remarks}); SearchResultEntry.fromJson(Map json) { fromMap(json); } fromMap(Map json) { searchResultId = json['searchResultId']; resultStrength = json['resultStrength']; resultSimilarity = JsonConverters.toDouble(json['resultSimilarity']); resultResolved = json['resultResolved']; resultType = json['resultType']; dateUpdated = JsonConverters.fromJson(json['dateUpdated'],'DateTime',context!); sanctionsListId = json['sanctionsListId']; sanctionsListName = json['sanctionsListName']; addresses = JsonConverters.fromJson(json['addresses'],'List',context!); datesOfBirth = JsonConverters.fromJson(json['datesOfBirth'],'List',context!); names = JsonConverters.fromJson(json['names'],'List',context!); nationalities = JsonConverters.fromJson(json['nationalities'],'List',context!); placesOfBirth = JsonConverters.fromJson(json['placesOfBirth'],'List',context!); remarks = JsonConverters.fromJson(json['remarks'],'List',context!); return this; } Map toJson() => { 'searchResultId': searchResultId, 'resultStrength': resultStrength, 'resultSimilarity': resultSimilarity, 'resultResolved': resultResolved, 'resultType': resultType, 'dateUpdated': JsonConverters.toJson(dateUpdated,'DateTime',context!), 'sanctionsListId': sanctionsListId, 'sanctionsListName': sanctionsListName, 'addresses': JsonConverters.toJson(addresses,'List',context!), 'datesOfBirth': JsonConverters.toJson(datesOfBirth,'List',context!), 'names': JsonConverters.toJson(names,'List',context!), 'nationalities': JsonConverters.toJson(nationalities,'List',context!), 'placesOfBirth': JsonConverters.toJson(placesOfBirth,'List',context!), 'remarks': JsonConverters.toJson(remarks,'List',context!) }; getTypeName() => "SearchResultEntry"; TypeContext? context = _ctx; } class SearchResults implements IConvertible { List? euResults; List? hmtResults; List? hmtUkraineResults; List? ofacResults; List? ofacConsolidatedResults; List? dfatResults; List? osfiResults; List? canadianJusticeResults; List? canadianSemaResults; List? swissSecoResults; SearchResults({this.euResults,this.hmtResults,this.hmtUkraineResults,this.ofacResults,this.ofacConsolidatedResults,this.dfatResults,this.osfiResults,this.canadianJusticeResults,this.canadianSemaResults,this.swissSecoResults}); SearchResults.fromJson(Map json) { fromMap(json); } fromMap(Map json) { euResults = JsonConverters.fromJson(json['euResults'],'List',context!); hmtResults = JsonConverters.fromJson(json['hmtResults'],'List',context!); hmtUkraineResults = JsonConverters.fromJson(json['hmtUkraineResults'],'List',context!); ofacResults = JsonConverters.fromJson(json['ofacResults'],'List',context!); ofacConsolidatedResults = JsonConverters.fromJson(json['ofacConsolidatedResults'],'List',context!); dfatResults = JsonConverters.fromJson(json['dfatResults'],'List',context!); osfiResults = JsonConverters.fromJson(json['osfiResults'],'List',context!); canadianJusticeResults = JsonConverters.fromJson(json['canadianJusticeResults'],'List',context!); canadianSemaResults = JsonConverters.fromJson(json['canadianSemaResults'],'List',context!); swissSecoResults = JsonConverters.fromJson(json['swissSecoResults'],'List',context!); return this; } Map toJson() => { 'euResults': JsonConverters.toJson(euResults,'List',context!), 'hmtResults': JsonConverters.toJson(hmtResults,'List',context!), 'hmtUkraineResults': JsonConverters.toJson(hmtUkraineResults,'List',context!), 'ofacResults': JsonConverters.toJson(ofacResults,'List',context!), 'ofacConsolidatedResults': JsonConverters.toJson(ofacConsolidatedResults,'List',context!), 'dfatResults': JsonConverters.toJson(dfatResults,'List',context!), 'osfiResults': JsonConverters.toJson(osfiResults,'List',context!), 'canadianJusticeResults': JsonConverters.toJson(canadianJusticeResults,'List',context!), 'canadianSemaResults': JsonConverters.toJson(canadianSemaResults,'List',context!), 'swissSecoResults': JsonConverters.toJson(swissSecoResults,'List',context!) }; getTypeName() => "SearchResults"; TypeContext? context = _ctx; } class SearchSource implements IConvertible { String? listId; String? listName; String? listShortName; bool? isAffectedByListUpdate; SearchSource({this.listId,this.listName,this.listShortName,this.isAffectedByListUpdate}); SearchSource.fromJson(Map json) { fromMap(json); } fromMap(Map json) { listId = json['listId']; listName = json['listName']; listShortName = json['listShortName']; isAffectedByListUpdate = json['isAffectedByListUpdate']; return this; } Map toJson() => { 'listId': listId, 'listName': listName, 'listShortName': listShortName, 'isAffectedByListUpdate': isAffectedByListUpdate }; getTypeName() => "SearchSource"; TypeContext? context = _ctx; } class ArrayOfSearchResultEntries extends ListBase implements IConvertible { final List l = []; set length(int newLength) { l.length = newLength; } int get length => l.length; SearchResultEntry operator [](int index) => l[index]; void operator []=(int index, SearchResultEntry value) { l[index] = value; } ArrayOfSearchResultEntries(); ArrayOfSearchResultEntries.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "ArrayOfSearchResultEntries"; TypeContext? context = _ctx; } class SearchRecord implements IConvertible { int? id; String? searchType; DateTime? dateSearched; DateTime? dateUpdated; DateTime? dateArchived; bool? isArchived; int? numOfResults; bool? clientInResults; bool? clientNotInResults; bool? affectedByUpdate; SearchCriteria? searchCriteria; SearchResults? searchResults; List? searchSources; ArrayOfSearchResultEntries? listSearchResults; SearchRecord({this.id,this.searchType,this.dateSearched,this.dateUpdated,this.dateArchived,this.isArchived,this.numOfResults,this.clientInResults,this.clientNotInResults,this.affectedByUpdate,this.searchCriteria,this.searchResults,this.searchSources,this.listSearchResults}); SearchRecord.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; searchType = json['searchType']; dateSearched = JsonConverters.fromJson(json['dateSearched'],'DateTime',context!); dateUpdated = JsonConverters.fromJson(json['dateUpdated'],'DateTime',context!); dateArchived = JsonConverters.fromJson(json['dateArchived'],'DateTime',context!); isArchived = json['isArchived']; numOfResults = json['numOfResults']; clientInResults = json['clientInResults']; clientNotInResults = json['clientNotInResults']; affectedByUpdate = json['affectedByUpdate']; searchCriteria = JsonConverters.fromJson(json['searchCriteria'],'SearchCriteria',context!); searchResults = JsonConverters.fromJson(json['searchResults'],'SearchResults',context!); searchSources = JsonConverters.fromJson(json['searchSources'],'List',context!); listSearchResults = JsonConverters.fromJson(json['listSearchResults'],'ArrayOfSearchResultEntries',context!); return this; } Map toJson() => { 'id': id, 'searchType': searchType, 'dateSearched': JsonConverters.toJson(dateSearched,'DateTime',context!), 'dateUpdated': JsonConverters.toJson(dateUpdated,'DateTime',context!), 'dateArchived': JsonConverters.toJson(dateArchived,'DateTime',context!), 'isArchived': isArchived, 'numOfResults': numOfResults, 'clientInResults': clientInResults, 'clientNotInResults': clientNotInResults, 'affectedByUpdate': affectedByUpdate, 'searchCriteria': JsonConverters.toJson(searchCriteria,'SearchCriteria',context!), 'searchResults': JsonConverters.toJson(searchResults,'SearchResults',context!), 'searchSources': JsonConverters.toJson(searchSources,'List',context!), 'listSearchResults': JsonConverters.toJson(listSearchResults,'ArrayOfSearchResultEntries',context!) }; getTypeName() => "SearchRecord"; TypeContext? context = _ctx; } class AddPepSearchData extends BaseResponse implements IBaseSearchResponse, IConvertible { ArrayOfLinkedTo? linkedTo; PepSearchRecord? searchRecord; bool? includesSanctionsSearchRecord; SearchRecord? sanctionsSearchRecord; AddPepSearchData({this.linkedTo,this.searchRecord,this.includesSanctionsSearchRecord,this.sanctionsSearchRecord}); AddPepSearchData.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); linkedTo = JsonConverters.fromJson(json['linkedTo'],'ArrayOfLinkedTo',context!); searchRecord = JsonConverters.fromJson(json['searchRecord'],'PepSearchRecord',context!); includesSanctionsSearchRecord = json['includesSanctionsSearchRecord']; sanctionsSearchRecord = JsonConverters.fromJson(json['sanctionsSearchRecord'],'SearchRecord',context!); return this; } Map toJson() => super.toJson()..addAll({ 'linkedTo': JsonConverters.toJson(linkedTo,'ArrayOfLinkedTo',context!), 'searchRecord': JsonConverters.toJson(searchRecord,'PepSearchRecord',context!), 'includesSanctionsSearchRecord': includesSanctionsSearchRecord, 'sanctionsSearchRecord': JsonConverters.toJson(sanctionsSearchRecord,'SearchRecord',context!) }); getTypeName() => "AddPepSearchData"; TypeContext? context = _ctx; } abstract class IAddSearchRequest { String? address; String? country; String? dateOfBirth; String? name; String? nationality; String? reference; ArrayOfLists? selectedLists; String? subUserName; String? type; ArrayOfLinkedTo? linkedTo; } abstract class IBaseDataResponse { ResponseStatus? responseStatus; } abstract class IHasResponseStatus { ResponseStatus? responseStatus; } abstract class IBaseSearchResponse extends IBaseDataResponse { ArrayOfLinkedTo? linkedTo; } // @DataContract class AddPepSearchResponse implements IConvertible { // @DataMember AddPepSearchData? data; AddPepSearchResponse({this.data}); AddPepSearchResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { data = JsonConverters.fromJson(json['data'],'AddPepSearchData',context!); return this; } Map toJson() => { 'data': JsonConverters.toJson(data,'AddPepSearchData',context!) }; getTypeName() => "AddPepSearchResponse"; TypeContext? context = _ctx; } // @Route("/peps/add", "POST") // @DataContract class AddPepSearch extends BaseRequest implements IReturn, IConvertible, IPost { // @DataMember AddPepSearchRequest? request; AddPepSearch({this.request}); AddPepSearch.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); request = JsonConverters.fromJson(json['request'],'AddPepSearchRequest',context!); return this; } Map toJson() => super.toJson()..addAll({ 'request': JsonConverters.toJson(request,'AddPepSearchRequest',context!) }); createResponse() => AddPepSearchResponse(); getResponseTypeName() => "AddPepSearchResponse"; getTypeName() => "AddPepSearch"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.sanctionssearch.com', types: { 'Authentication': TypeInfo(TypeOf.Class, create:() => Authentication()), 'BaseRequest': TypeInfo(TypeOf.Class, create:() => BaseRequest()), 'IBaseRequest': TypeInfo(TypeOf.Interface), 'ArrayOfLists': TypeInfo(TypeOf.Class, create:() => ArrayOfLists()), 'LinkedTo': TypeInfo(TypeOf.Class, create:() => LinkedTo()), 'ArrayOfLinkedTo': TypeInfo(TypeOf.Class, create:() => ArrayOfLinkedTo()), 'AddPepSearchRequest': TypeInfo(TypeOf.Class, create:() => AddPepSearchRequest()), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'SearchCriteria': TypeInfo(TypeOf.Class, create:() => SearchCriteria()), 'PepSearchResultAddress': TypeInfo(TypeOf.Class, create:() => PepSearchResultAddress()), 'PepSearchResultAlias': TypeInfo(TypeOf.Class, create:() => PepSearchResultAlias()), 'PepSearchResultArticleSnippet': TypeInfo(TypeOf.Class, create:() => PepSearchResultArticleSnippet()), 'PepSearchResultArticle': TypeInfo(TypeOf.Class, create:() => PepSearchResultArticle()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'PepSearchResultIndividualAssociation': TypeInfo(TypeOf.Class, create:() => PepSearchResultIndividualAssociation()), 'PepSearchResultBusinessAssociation': TypeInfo(TypeOf.Class, create:() => PepSearchResultBusinessAssociation()), 'PepSearchResultNote': TypeInfo(TypeOf.Class, create:() => PepSearchResultNote()), 'PepSearchResultPoliticalPosition': TypeInfo(TypeOf.Class, create:() => PepSearchResultPoliticalPosition()), 'PepSearchResult': TypeInfo(TypeOf.Class, create:() => PepSearchResult()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'PepSearchResults': TypeInfo(TypeOf.Class, create:() => PepSearchResults()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'PepSearchRecord': TypeInfo(TypeOf.Class, create:() => PepSearchRecord()), 'SearchResultEuAddress': TypeInfo(TypeOf.Class, create:() => SearchResultEuAddress()), 'SearchResultEuBirth': TypeInfo(TypeOf.Class, create:() => SearchResultEuBirth()), 'SearchResultOfacEuCitizenship': TypeInfo(TypeOf.Class, create:() => SearchResultOfacEuCitizenship()), 'SearchResultEuName': TypeInfo(TypeOf.Class, create:() => SearchResultEuName()), 'SearchResultEuPassport': TypeInfo(TypeOf.Class, create:() => SearchResultEuPassport()), 'SearchResultEu': TypeInfo(TypeOf.Class, create:() => SearchResultEu()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SearchResultHmTreasury': TypeInfo(TypeOf.Class, create:() => SearchResultHmTreasury()), 'SearchResultOfacAddress': TypeInfo(TypeOf.Class, create:() => SearchResultOfacAddress()), 'SearchResultOfacAka': TypeInfo(TypeOf.Class, create:() => SearchResultOfacAka()), 'SearchResultOfacDateOfBirth': TypeInfo(TypeOf.Class, create:() => SearchResultOfacDateOfBirth()), 'SearchResultOfacNationality': TypeInfo(TypeOf.Class, create:() => SearchResultOfacNationality()), 'SearchResultOfacPlaceOfBirth': TypeInfo(TypeOf.Class, create:() => SearchResultOfacPlaceOfBirth()), 'SearchResultOfac': TypeInfo(TypeOf.Class, create:() => SearchResultOfac()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SearchResultDfat': TypeInfo(TypeOf.Class, create:() => SearchResultDfat()), 'SearchResultOsfi': TypeInfo(TypeOf.Class, create:() => SearchResultOsfi()), 'SearchResultCanadianJustice': TypeInfo(TypeOf.Class, create:() => SearchResultCanadianJustice()), 'SearchResultCanadianSema': TypeInfo(TypeOf.Class, create:() => SearchResultCanadianSema()), 'SearchResultAddress': TypeInfo(TypeOf.Class, create:() => SearchResultAddress()), 'SearchResultDateOfBirth': TypeInfo(TypeOf.Class, create:() => SearchResultDateOfBirth()), 'SearchResultName': TypeInfo(TypeOf.Class, create:() => SearchResultName()), 'SearchResultNationality': TypeInfo(TypeOf.Class, create:() => SearchResultNationality()), 'SearchResultPlaceOfBirth': TypeInfo(TypeOf.Class, create:() => SearchResultPlaceOfBirth()), 'SearchResultRemark': TypeInfo(TypeOf.Class, create:() => SearchResultRemark()), 'SearchResultEntry': TypeInfo(TypeOf.Class, create:() => SearchResultEntry()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SearchResults': TypeInfo(TypeOf.Class, create:() => SearchResults()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SearchSource': TypeInfo(TypeOf.Class, create:() => SearchSource()), 'ArrayOfSearchResultEntries': TypeInfo(TypeOf.Class, create:() => ArrayOfSearchResultEntries()), 'SearchRecord': TypeInfo(TypeOf.Class, create:() => SearchRecord()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AddPepSearchData': TypeInfo(TypeOf.Class, create:() => AddPepSearchData()), 'IAddSearchRequest': TypeInfo(TypeOf.Interface), 'IBaseDataResponse': TypeInfo(TypeOf.Interface), 'IHasResponseStatus': TypeInfo(TypeOf.Interface), 'IBaseSearchResponse': TypeInfo(TypeOf.Interface), 'AddPepSearchResponse': TypeInfo(TypeOf.Class, create:() => AddPepSearchResponse()), 'AddPepSearch': TypeInfo(TypeOf.Class, create:() => AddPepSearch()), });