/* Options: Date: 2025-03-15 03:35:29 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: GetSearch.* //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 GetSearchRequest implements IConvertible { /** * If the search is being accessed by a sub user, specify their username here to validate they have permissions to view it */ // @ApiMember(Description="If the search is being accessed by a sub user, specify their username here to validate they have permissions to view it") String? subUserName; /** * If set to true, the response will exclude resolved search results, it will only include unresolved results */ // @ApiMember(Description="If set to true, the response will exclude resolved search results, it will only include unresolved results") bool? onlyShowUnresolvedResults; int? id; GetSearchRequest({this.subUserName,this.onlyShowUnresolvedResults,this.id}); GetSearchRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { subUserName = json['subUserName']; onlyShowUnresolvedResults = json['onlyShowUnresolvedResults']; id = json['id']; return this; } Map toJson() => { 'subUserName': subUserName, 'onlyShowUnresolvedResults': onlyShowUnresolvedResults, 'id': id }; getTypeName() => "GetSearchRequest"; 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 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 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 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 GetSearchData extends BaseResponse implements IBaseSearchResponse, IConvertible { ArrayOfLinkedTo? linkedTo; SearchRecord? searchRecord; GetSearchData({this.linkedTo,this.searchRecord}); GetSearchData.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); linkedTo = JsonConverters.fromJson(json['linkedTo'],'ArrayOfLinkedTo',context!); searchRecord = JsonConverters.fromJson(json['searchRecord'],'SearchRecord',context!); return this; } Map toJson() => super.toJson()..addAll({ 'linkedTo': JsonConverters.toJson(linkedTo,'ArrayOfLinkedTo',context!), 'searchRecord': JsonConverters.toJson(searchRecord,'SearchRecord',context!) }); getTypeName() => "GetSearchData"; TypeContext? context = _ctx; } abstract class IBaseDataResponse { ResponseStatus? responseStatus; } abstract class IHasResponseStatus { ResponseStatus? responseStatus; } abstract class IBaseSearchResponse extends IBaseDataResponse { ArrayOfLinkedTo? linkedTo; } // @DataContract class GetSearchResponse implements IConvertible { // @DataMember GetSearchData? data; GetSearchResponse({this.data}); GetSearchResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { data = JsonConverters.fromJson(json['data'],'GetSearchData',context!); return this; } Map toJson() => { 'data': JsonConverters.toJson(data,'GetSearchData',context!) }; getTypeName() => "GetSearchResponse"; TypeContext? context = _ctx; } // @Route("/sanctions/get", "POST") // @DataContract class GetSearch extends BaseRequest implements IReturn, IConvertible, IPost { // @DataMember GetSearchRequest? request; GetSearch({this.request}); GetSearch.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); request = JsonConverters.fromJson(json['request'],'GetSearchRequest',context!); return this; } Map toJson() => super.toJson()..addAll({ 'request': JsonConverters.toJson(request,'GetSearchRequest',context!) }); createResponse() => GetSearchResponse(); getResponseTypeName() => "GetSearchResponse"; getTypeName() => "GetSearch"; 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), 'GetSearchRequest': TypeInfo(TypeOf.Class, create:() => GetSearchRequest()), 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'LinkedTo': TypeInfo(TypeOf.Class, create:() => LinkedTo()), 'ArrayOfLinkedTo': TypeInfo(TypeOf.Class, create:() => ArrayOfLinkedTo()), 'SearchCriteria': TypeInfo(TypeOf.Class, create:() => SearchCriteria()), '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:() => []), 'GetSearchData': TypeInfo(TypeOf.Class, create:() => GetSearchData()), 'IBaseDataResponse': TypeInfo(TypeOf.Interface), 'IHasResponseStatus': TypeInfo(TypeOf.Interface), 'IBaseSearchResponse': TypeInfo(TypeOf.Interface), 'GetSearchResponse': TypeInfo(TypeOf.Class, create:() => GetSearchResponse()), 'GetSearch': TypeInfo(TypeOf.Class, create:() => GetSearch()), });