Simplified.ID API: v2

<back to all web services

GetClientGpg45

Clients
The following routes are available for this service:
GET/clients/{Id}/gpg45/Get the GPG 45 (DVS data schema v1.0) projection for a client
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. Can be provided in the request body, or as a header parameter (X-Api-User)
    */
    // @DataMember
    // @ApiMember(Description="The API User ID provided by us when you signed up to use our API. Can be provided in the request body, or as a header parameter (X-Api-User)", IsRequired=true, ParameterType="header, body")
    String? apiUserId;

    /**
    * The API User Key provided by us when you signed up to use our API. Can be provided in the request body, or as a header parameter (X-Api-Key)
    */
    // @DataMember
    // @ApiMember(Description="The API User Key provided by us when you signed up to use our API. Can be provided in the request body, or as a header parameter (X-Api-Key)", IsRequired=true, ParameterType="header, body")
    String? apiUserKey;

    /**
    * The User ID of the user making the request (e.g. a sub user). This is optional but can be used to associate API requests with a specific user, thereby allowing user permissions to be enforced. Can be provided in the body, or as a header parameter (X-User-Id).
    */
    // @DataMember
    // @ApiMember(Description="The User ID of the user making the request (e.g. a sub user). This is optional but can be used to associate API requests with a specific user, thereby allowing user permissions to be enforced. Can be provided in the body, or as a header parameter (X-User-Id).", ParameterType="header, body")
    String? userId;

    Authentication({this.apiUserId,this.apiUserKey,this.userId});
    Authentication.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        apiUserId = json['apiUserId'];
        apiUserKey = json['apiUserKey'];
        userId = json['userId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'apiUserId': apiUserId,
        'apiUserKey': apiUserKey,
        'userId': userId
    };

    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<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        authentication = JsonConverters.fromJson(json['authentication'],'Authentication',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'authentication': JsonConverters.toJson(authentication,'Authentication',context!)
    };

    getTypeName() => "BaseRequest";
    TypeContext? context = _ctx;
}

// @DataContract
class ResponseError implements IConvertible
{
    // @DataMember(Order=1)
    String? errorCode;

    // @DataMember(Order=2)
    String? fieldName;

    // @DataMember(Order=3)
    String? message;

    // @DataMember(Order=4)
    Map<String,String?>? meta;

    ResponseError({this.errorCode,this.fieldName,this.message,this.meta});
    ResponseError.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        errorCode = json['errorCode'];
        fieldName = json['fieldName'];
        message = json['message'];
        meta = JsonConverters.toStringMap(json['meta']);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'errorCode': errorCode,
        'fieldName': fieldName,
        'message': message,
        'meta': meta
    };

    getTypeName() => "ResponseError";
    TypeContext? context = _ctx;
}

class ArrayOfResponseError extends ListBase<ResponseError> implements IConvertible
{
    final List<ResponseError> l = [];
    set length(int newLength) { l.length = newLength; }
    int get length => l.length;
    ResponseError operator [](int index) => l[index];
    void operator []=(int index, ResponseError value) { l[index] = value; }
    ArrayOfResponseError();
    ArrayOfResponseError.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "ArrayOfResponseError";
    TypeContext? context = _ctx;
}

// @DataContract
class ResponseStatus implements IConvertible
{
    // @DataMember(Order=1)
    String? errorCode;

    // @DataMember(Order=2)
    String? message;

    // @DataMember(Order=3)
    String? stackTrace;

    // @DataMember(Order=4)
    ArrayOfResponseError? errors;

    // @DataMember(Order=5)
    Map<String,String?>? meta;

    ResponseStatus({this.errorCode,this.message,this.stackTrace,this.errors,this.meta});
    ResponseStatus.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        errorCode = json['errorCode'];
        message = json['message'];
        stackTrace = json['stackTrace'];
        errors = JsonConverters.fromJson(json['errors'],'ArrayOfResponseError',context!);
        meta = JsonConverters.toStringMap(json['meta']);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'errorCode': errorCode,
        'message': message,
        'stackTrace': stackTrace,
        'errors': JsonConverters.toJson(errors,'ArrayOfResponseError',context!),
        'meta': meta
    };

    getTypeName() => "ResponseStatus";
    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<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!)
    };

    getTypeName() => "BaseResponse";
    TypeContext? context = _ctx;
}

class Links implements IConvertible
{
    // @apiMember()
    String? self;

    Links({this.self});
    Links.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        self = json['self'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'self': self
    };

    getTypeName() => "Links";
    TypeContext? context = _ctx;
}

class gpg45_address implements IConvertible
{
    /**
    * Street address lines, most specific first
    */
    // @ApiMember(Description="Street address lines, most specific first")
    List<String>? street;

    /**
    * City / town / district
    */
    // @ApiMember(Description="City / town / district")
    String? locality;

    /**
    * Postcode
    */
    // @ApiMember(Description="Postcode")
    String? postal_code;

    /**
    * Country code (ISO 3166-1 alpha-3)
    */
    // @ApiMember(Description="Country code (ISO 3166-1 alpha-3)")
    String? country_code;

    gpg45_address({this.street,this.locality,this.postal_code,this.country_code});
    gpg45_address.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        street = JsonConverters.fromJson(json['street'],'List<String>',context!);
        locality = json['locality'];
        postal_code = json['postal_code'];
        country_code = json['country_code'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'street': JsonConverters.toJson(street,'List<String>',context!),
        'locality': locality,
        'postal_code': postal_code,
        'country_code': country_code
    };

    getTypeName() => "gpg45_address";
    TypeContext? context = _ctx;
}

class gpg45_attachment implements IConvertible
{
    /**
    * A description of the attachment
    */
    // @ApiMember(Description="A description of the attachment")
    String? desc;

    /**
    * The IANA media type of the data (e.g. image/jpeg)
    */
    // @ApiMember(Description="The IANA media type of the data (e.g. image/jpeg)")
    String? content_type;

    /**
    * The encoding format: base64 or byte_data
    */
    // @ApiMember(Description="The encoding format: base64 or byte_data")
    String? content_format;

    /**
    * The base64-encoded data
    */
    // @ApiMember(Description="The base64-encoded data")
    String? content;

    gpg45_attachment({this.desc,this.content_type,this.content_format,this.content});
    gpg45_attachment.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        desc = json['desc'];
        content_type = json['content_type'];
        content_format = json['content_format'];
        content = json['content'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'desc': desc,
        'content_type': content_type,
        'content_format': content_format,
        'content': content
    };

    getTypeName() => "gpg45_attachment";
    TypeContext? context = _ctx;
}

class gpg45_biometric_information implements IConvertible
{
    /**
    * The biometric modality: face, fingerprint, voice or iris
    */
    // @ApiMember(Description="The biometric modality: face, fingerprint, voice or iris")
    String? biometric_modality;

    /**
    * The captured biometric data
    */
    // @ApiMember(Description="The captured biometric data")
    List<gpg45_attachment>? attachments;

    gpg45_biometric_information({this.biometric_modality,this.attachments});
    gpg45_biometric_information.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        biometric_modality = json['biometric_modality'];
        attachments = JsonConverters.fromJson(json['attachments'],'List<gpg45_attachment>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'biometric_modality': biometric_modality,
        'attachments': JsonConverters.toJson(attachments,'List<gpg45_attachment>',context!)
    };

    getTypeName() => "gpg45_biometric_information";
    TypeContext? context = _ctx;
}

class gpg45_claims implements IConvertible
{
    /**
    * The individual's given name(s)
    */
    // @ApiMember(Description="The individual's given name(s)")
    String? given_name;

    /**
    * The individual's family / surname
    */
    // @ApiMember(Description="The individual's family / surname")
    String? family_name;

    /**
    * The individual's date of birth (ISO 8601, yyyy-MM-dd)
    */
    // @ApiMember(Description="The individual's date of birth (ISO 8601, yyyy-MM-dd)")
    String? birthdate;

    /**
    * Countries of citizenship (ISO 3166-1 alpha-3)
    */
    // @ApiMember(Description="Countries of citizenship (ISO 3166-1 alpha-3)")
    List<String>? nationalities;

    /**
    * The individual's address
    */
    // @ApiMember(Description="The individual's address")
    gpg45_address? address;

    /**
    * Biometric characteristics of the person making the claim
    */
    // @ApiMember(Description="Biometric characteristics of the person making the claim")
    List<gpg45_biometric_information>? biometric_information;

    gpg45_claims({this.given_name,this.family_name,this.birthdate,this.nationalities,this.address,this.biometric_information});
    gpg45_claims.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        given_name = json['given_name'];
        family_name = json['family_name'];
        birthdate = json['birthdate'];
        nationalities = JsonConverters.fromJson(json['nationalities'],'List<String>',context!);
        address = JsonConverters.fromJson(json['address'],'gpg45_address',context!);
        biometric_information = JsonConverters.fromJson(json['biometric_information'],'List<gpg45_biometric_information>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'given_name': given_name,
        'family_name': family_name,
        'birthdate': birthdate,
        'nationalities': JsonConverters.toJson(nationalities,'List<String>',context!),
        'address': JsonConverters.toJson(address,'gpg45_address',context!),
        'biometric_information': JsonConverters.toJson(biometric_information,'List<gpg45_biometric_information>',context!)
    };

    getTypeName() => "gpg45_claims";
    TypeContext? context = _ctx;
}

class gpg45_dvs_registration implements IConvertible
{
    /**
    * The service's DVS register reference
    */
    // @ApiMember(Description="The service's DVS register reference")
    String? registration_id;

    /**
    * The registered name of the certified service
    */
    // @ApiMember(Description="The registered name of the certified service")
    String? name;

    /**
    * Contact email for the certified service
    */
    // @ApiMember(Description="Contact email for the certified service")
    String? contact_email;

    /**
    * Website of the certified service
    */
    // @ApiMember(Description="Website of the certified service")
    String? website;

    gpg45_dvs_registration({this.registration_id,this.name,this.contact_email,this.website});
    gpg45_dvs_registration.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        registration_id = json['registration_id'];
        name = json['name'];
        contact_email = json['contact_email'];
        website = json['website'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'registration_id': registration_id,
        'name': name,
        'contact_email': contact_email,
        'website': website
    };

    getTypeName() => "gpg45_dvs_registration";
    TypeContext? context = _ctx;
}

class gpg45_authority implements IConvertible
{
    /**
    * The name of the authority
    */
    // @ApiMember(Description="The name of the authority")
    String? name;

    /**
    * The country code where the authority is based (ISO 3166-1 alpha-2)
    */
    // @ApiMember(Description="The country code where the authority is based (ISO 3166-1 alpha-2)")
    String? country_code;

    /**
    * The authority's jurisdiction
    */
    // @ApiMember(Description="The authority's jurisdiction")
    String? jurisdiction;

    gpg45_authority({this.name,this.country_code,this.jurisdiction});
    gpg45_authority.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        name = json['name'];
        country_code = json['country_code'];
        jurisdiction = json['jurisdiction'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'name': name,
        'country_code': country_code,
        'jurisdiction': jurisdiction
    };

    getTypeName() => "gpg45_authority";
    TypeContext? context = _ctx;
}

class gpg45_document_details implements IConvertible
{
    /**
    * The GPG 45 document_type enumeration value
    */
    // @ApiMember(Description="The GPG 45 document_type enumeration value")
    String? type;

    /**
    * The document's reference / identification number
    */
    // @ApiMember(Description="The document's reference / identification number")
    String? document_number;

    /**
    * The date the document was issued (ISO 8601)
    */
    // @ApiMember(Description="The date the document was issued (ISO 8601)")
    String? date_of_issuance;

    /**
    * The date the document expires (ISO 8601)
    */
    // @ApiMember(Description="The date the document expires (ISO 8601)")
    String? date_of_expiry;

    /**
    * The authority that issued the document
    */
    // @ApiMember(Description="The authority that issued the document")
    gpg45_authority? issuer;

    gpg45_document_details({this.type,this.document_number,this.date_of_issuance,this.date_of_expiry,this.issuer});
    gpg45_document_details.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        type = json['type'];
        document_number = json['document_number'];
        date_of_issuance = json['date_of_issuance'];
        date_of_expiry = json['date_of_expiry'];
        issuer = JsonConverters.fromJson(json['issuer'],'gpg45_authority',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'type': type,
        'document_number': document_number,
        'date_of_issuance': date_of_issuance,
        'date_of_expiry': date_of_expiry,
        'issuer': JsonConverters.toJson(issuer,'gpg45_authority',context!)
    };

    getTypeName() => "gpg45_document_details";
    TypeContext? context = _ctx;
}

class gpg45_check_details implements IConvertible
{
    /**
    * The GPG 45 check_method: auth, token, kbv, pvp, pvr, bvp, bvr, vpip, vpiruv, vri, vdig, vcrypt or data
    */
    // @ApiMember(Description="The GPG 45 check_method: auth, token, kbv, pvp, pvr, bvp, bvr, vpip, vpiruv, vri, vdig, vcrypt or data")
    String? check_method;

    /**
    * A unique reference for this check, matched by assurance_details evidence_ref entries
    */
    // @ApiMember(Description="A unique reference for this check, matched by assurance_details evidence_ref entries")
    String? check_id;

    /**
    * When the check was performed (ISO 8601 timestamp)
    */
    // @ApiMember(Description="When the check was performed (ISO 8601 timestamp)")
    String? time;

    /**
    * The organisation that performed the check
    */
    // @ApiMember(Description="The organisation that performed the check")
    String? organisation;

    gpg45_check_details({this.check_method,this.check_id,this.time,this.organisation});
    gpg45_check_details.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        check_method = json['check_method'];
        check_id = json['check_id'];
        time = json['time'];
        organisation = json['organisation'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'check_method': check_method,
        'check_id': check_id,
        'time': time,
        'organisation': organisation
    };

    getTypeName() => "gpg45_check_details";
    TypeContext? context = _ctx;
}

class gpg45_document implements IConvertible
{
    /**
    * Always 'document'
    */
    // @ApiMember(Description="Always 'document'")
    String? type;

    /**
    * Details about the document itself
    */
    // @ApiMember(Description="Details about the document itself")
    gpg45_document_details? document_details;

    /**
    * Copies of the document
    */
    // @ApiMember(Description="Copies of the document")
    List<gpg45_attachment>? attachments;

    /**
    * The checks performed on the document
    */
    // @ApiMember(Description="The checks performed on the document")
    List<gpg45_check_details>? check_details;

    gpg45_document({this.type,this.document_details,this.attachments,this.check_details});
    gpg45_document.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        type = json['type'];
        document_details = JsonConverters.fromJson(json['document_details'],'gpg45_document_details',context!);
        attachments = JsonConverters.fromJson(json['attachments'],'List<gpg45_attachment>',context!);
        check_details = JsonConverters.fromJson(json['check_details'],'List<gpg45_check_details>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'type': type,
        'document_details': JsonConverters.toJson(document_details,'gpg45_document_details',context!),
        'attachments': JsonConverters.toJson(attachments,'List<gpg45_attachment>',context!),
        'check_details': JsonConverters.toJson(check_details,'List<gpg45_check_details>',context!)
    };

    getTypeName() => "gpg45_document";
    TypeContext? context = _ctx;
}

class gpg45_evidence implements IConvertible
{
    /**
    * The document used to prove the claim
    */
    // @ApiMember(Description="The document used to prove the claim")
    gpg45_document? document;

    gpg45_evidence({this.document});
    gpg45_evidence.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        document = JsonConverters.fromJson(json['document'],'gpg45_document',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'document': JsonConverters.toJson(document,'gpg45_document',context!)
    };

    getTypeName() => "gpg45_evidence";
    TypeContext? context = _ctx;
}

class gpg45_evidence_metadata implements IConvertible
{
    /**
    * The evidence classification, where applicable
    */
    // @ApiMember(Description="The evidence classification, where applicable")
    String? evidence_classification;

    gpg45_evidence_metadata({this.evidence_classification});
    gpg45_evidence_metadata.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        evidence_classification = json['evidence_classification'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'evidence_classification': evidence_classification
    };

    getTypeName() => "gpg45_evidence_metadata";
    TypeContext? context = _ctx;
}

class gpg45_evidence_ref implements IConvertible
{
    /**
    * The check_id of the check that produced this assurance
    */
    // @ApiMember(Description="The check_id of the check that produced this assurance")
    String? check_id;

    /**
    * Additional metadata about how the evidence supports the assurance
    */
    // @ApiMember(Description="Additional metadata about how the evidence supports the assurance")
    gpg45_evidence_metadata? evidence_ref;

    gpg45_evidence_ref({this.check_id,this.evidence_ref});
    gpg45_evidence_ref.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        check_id = json['check_id'];
        evidence_ref = JsonConverters.fromJson(json['evidence_ref'],'gpg45_evidence_metadata',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'check_id': check_id,
        'evidence_ref': JsonConverters.toJson(evidence_ref,'gpg45_evidence_metadata',context!)
    };

    getTypeName() => "gpg45_evidence_ref";
    TypeContext? context = _ctx;
}

class gpg45_assurance_details implements IConvertible
{
    /**
    * The type of check: validation, verification, counter_fraud or activity_history
    */
    // @ApiMember(Description="The type of check: validation, verification, counter_fraud or activity_history")
    String? assurance_type;

    /**
    * The GPG 45 score achieved for this check: score_1 to score_4
    */
    // @ApiMember(Description="The GPG 45 score achieved for this check: score_1 to score_4")
    String? assurance_classification;

    /**
    * The checks that produced this assurance, matched by check_id
    */
    // @ApiMember(Description="The checks that produced this assurance, matched by check_id")
    List<gpg45_evidence_ref>? evidence_ref;

    gpg45_assurance_details({this.assurance_type,this.assurance_classification,this.evidence_ref});
    gpg45_assurance_details.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        assurance_type = json['assurance_type'];
        assurance_classification = json['assurance_classification'];
        evidence_ref = JsonConverters.fromJson(json['evidence_ref'],'List<gpg45_evidence_ref>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'assurance_type': assurance_type,
        'assurance_classification': assurance_classification,
        'evidence_ref': JsonConverters.toJson(evidence_ref,'List<gpg45_evidence_ref>',context!)
    };

    getTypeName() => "gpg45_assurance_details";
    TypeContext? context = _ctx;
}

class gpg45_assurance_process implements IConvertible
{
    /**
    * Always 'gpg45' for the DVS trust framework
    */
    // @ApiMember(Description="Always 'gpg45' for the DVS trust framework")
    String? policy;

    /**
    * The GPG 45 identity profile code that was met (e.g. M1A, H1A). Null if no profile's requirements were fully met
    */
    // @ApiMember(Description="The GPG 45 identity profile code that was met (e.g. M1A, H1A). Null if no profile's requirements were fully met")
    String? procedure;

    /**
    * How each assurance process was satisfied
    */
    // @ApiMember(Description="How each assurance process was satisfied")
    List<gpg45_assurance_details>? assurance_details;

    gpg45_assurance_process({this.policy,this.procedure,this.assurance_details});
    gpg45_assurance_process.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        policy = json['policy'];
        procedure = json['procedure'];
        assurance_details = JsonConverters.fromJson(json['assurance_details'],'List<gpg45_assurance_details>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'policy': policy,
        'procedure': procedure,
        'assurance_details': JsonConverters.toJson(assurance_details,'List<gpg45_assurance_details>',context!)
    };

    getTypeName() => "gpg45_assurance_process";
    TypeContext? context = _ctx;
}

class gpg45_verification implements IConvertible
{
    /**
    * Always 'uk_dvstf' for the UK DVS trust framework
    */
    // @ApiMember(Description="Always 'uk_dvstf' for the UK DVS trust framework")
    String? trust_framework;

    /**
    * The certified service's entry in the DVS register
    */
    // @ApiMember(Description="The certified service's entry in the DVS register")
    gpg45_dvs_registration? dvs_registration;

    /**
    * The evidence used to prove the claim
    */
    // @ApiMember(Description="The evidence used to prove the claim")
    List<gpg45_evidence>? evidence;

    /**
    * The GPG 45 confidence level achieved: low, medium, high or very_high
    */
    // @ApiMember(Description="The GPG 45 confidence level achieved: low, medium, high or very_high")
    String? assurance_level;

    /**
    * The assurance policy and procedure followed
    */
    // @ApiMember(Description="The assurance policy and procedure followed")
    gpg45_assurance_process? assurance_process;

    gpg45_verification({this.trust_framework,this.dvs_registration,this.evidence,this.assurance_level,this.assurance_process});
    gpg45_verification.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        trust_framework = json['trust_framework'];
        dvs_registration = JsonConverters.fromJson(json['dvs_registration'],'gpg45_dvs_registration',context!);
        evidence = JsonConverters.fromJson(json['evidence'],'List<gpg45_evidence>',context!);
        assurance_level = json['assurance_level'];
        assurance_process = JsonConverters.fromJson(json['assurance_process'],'gpg45_assurance_process',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'trust_framework': trust_framework,
        'dvs_registration': JsonConverters.toJson(dvs_registration,'gpg45_dvs_registration',context!),
        'evidence': JsonConverters.toJson(evidence,'List<gpg45_evidence>',context!),
        'assurance_level': assurance_level,
        'assurance_process': JsonConverters.toJson(assurance_process,'gpg45_assurance_process',context!)
    };

    getTypeName() => "gpg45_verification";
    TypeContext? context = _ctx;
}

class Gpg45Projection implements IConvertible
{
    /**
    * The claimed identity information (GPG 45 'claims')
    */
    // @ApiMember(Description="The claimed identity information (GPG 45 'claims')")
    gpg45_claims? claims;

    /**
    * How the claims were proven (GPG 45 'verification'). Null until the client is Verified
    */
    // @ApiMember(Description="How the claims were proven (GPG 45 'verification'). Null until the client is Verified")
    gpg45_verification? verification;

    Gpg45Projection({this.claims,this.verification});
    Gpg45Projection.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        claims = JsonConverters.fromJson(json['claims'],'gpg45_claims',context!);
        verification = JsonConverters.fromJson(json['verification'],'gpg45_verification',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'claims': JsonConverters.toJson(claims,'gpg45_claims',context!),
        'verification': JsonConverters.toJson(verification,'gpg45_verification',context!)
    };

    getTypeName() => "Gpg45Projection";
    TypeContext? context = _ctx;
}

class GetClientGpg45Data extends BaseResponse implements IConvertible
{
    /**
    * Links related to this client's GPG 45 projection
    */
    // @ApiMember(Description="Links related to this client's GPG 45 projection")
    Links? links;

    /**
    * The GPG 45 (DVS data schema v1.0) projection: 'claims' and, once Verified, 'verification'
    */
    // @ApiMember(Description="The GPG 45 (DVS data schema v1.0) projection: 'claims' and, once Verified, 'verification'")
    Gpg45Projection? gpg45;

    GetClientGpg45Data({this.links,this.gpg45});
    GetClientGpg45Data.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        links = JsonConverters.fromJson(json['links'],'Links',context!);
        gpg45 = JsonConverters.fromJson(json['gpg45'],'Gpg45Projection',context!);
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'links': JsonConverters.toJson(links,'Links',context!),
        'gpg45': JsonConverters.toJson(gpg45,'Gpg45Projection',context!)
    });

    getTypeName() => "GetClientGpg45Data";
    TypeContext? context = _ctx;
}

// @DataContract
class GetClientGpg45Response implements IConvertible
{
    // @DataMember
    GetClientGpg45Data? data;

    GetClientGpg45Response({this.data});
    GetClientGpg45Response.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        data = JsonConverters.fromJson(json['data'],'GetClientGpg45Data',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'data': JsonConverters.toJson(data,'GetClientGpg45Data',context!)
    };

    getTypeName() => "GetClientGpg45Response";
    TypeContext? context = _ctx;
}

// @DataContract
class GetClientGpg45 extends BaseRequest implements IConvertible
{
    // @DataMember
    // @ApiMember(IsRequired=true, ParameterType="path")
    int? id;

    GetClientGpg45({this.id});
    GetClientGpg45.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        id = json['id'];
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'id': id
    });

    getTypeName() => "GetClientGpg45";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.sanctionssearch.com', types: <String, TypeInfo> {
    'Authentication': TypeInfo(TypeOf.Class, create:() => Authentication()),
    'BaseRequest': TypeInfo(TypeOf.Class, create:() => BaseRequest()),
    'ArrayOfResponseError': TypeInfo(TypeOf.Class, create:() => ArrayOfResponseError()),
    'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()),
    'Links': TypeInfo(TypeOf.Class, create:() => Links()),
    'gpg45_address': TypeInfo(TypeOf.Class, create:() => gpg45_address()),
    'gpg45_attachment': TypeInfo(TypeOf.Class, create:() => gpg45_attachment()),
    'gpg45_biometric_information': TypeInfo(TypeOf.Class, create:() => gpg45_biometric_information()),
    'List<gpg45_attachment>': TypeInfo(TypeOf.Class, create:() => <gpg45_attachment>[]),
    'gpg45_claims': TypeInfo(TypeOf.Class, create:() => gpg45_claims()),
    'List<gpg45_biometric_information>': TypeInfo(TypeOf.Class, create:() => <gpg45_biometric_information>[]),
    'gpg45_dvs_registration': TypeInfo(TypeOf.Class, create:() => gpg45_dvs_registration()),
    'gpg45_authority': TypeInfo(TypeOf.Class, create:() => gpg45_authority()),
    'gpg45_document_details': TypeInfo(TypeOf.Class, create:() => gpg45_document_details()),
    'gpg45_check_details': TypeInfo(TypeOf.Class, create:() => gpg45_check_details()),
    'gpg45_document': TypeInfo(TypeOf.Class, create:() => gpg45_document()),
    'List<gpg45_check_details>': TypeInfo(TypeOf.Class, create:() => <gpg45_check_details>[]),
    'gpg45_evidence': TypeInfo(TypeOf.Class, create:() => gpg45_evidence()),
    'gpg45_evidence_metadata': TypeInfo(TypeOf.Class, create:() => gpg45_evidence_metadata()),
    'gpg45_evidence_ref': TypeInfo(TypeOf.Class, create:() => gpg45_evidence_ref()),
    'gpg45_assurance_details': TypeInfo(TypeOf.Class, create:() => gpg45_assurance_details()),
    'List<gpg45_evidence_ref>': TypeInfo(TypeOf.Class, create:() => <gpg45_evidence_ref>[]),
    'gpg45_assurance_process': TypeInfo(TypeOf.Class, create:() => gpg45_assurance_process()),
    'List<gpg45_assurance_details>': TypeInfo(TypeOf.Class, create:() => <gpg45_assurance_details>[]),
    'gpg45_verification': TypeInfo(TypeOf.Class, create:() => gpg45_verification()),
    'List<gpg45_evidence>': TypeInfo(TypeOf.Class, create:() => <gpg45_evidence>[]),
    'Gpg45Projection': TypeInfo(TypeOf.Class, create:() => Gpg45Projection()),
    'GetClientGpg45Data': TypeInfo(TypeOf.Class, create:() => GetClientGpg45Data()),
    'GetClientGpg45Response': TypeInfo(TypeOf.Class, create:() => GetClientGpg45Response()),
    'GetClientGpg45': TypeInfo(TypeOf.Class, create:() => GetClientGpg45()),
});

Dart GetClientGpg45 DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /clients/{Id}/gpg45/ HTTP/1.1 
Host: api.sanctionssearch.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"data":{"links":{"self":"String"},"gpg45":{"claims":{"given_name":"String","family_name":"String","birthdate":"String","nationalities":["String"],"address":{"street":["String"],"locality":"String","postal_code":"String","country_code":"String"},"biometric_information":[{"biometric_modality":"String","attachments":[{"desc":"String","content_type":"String","content_format":"String","content":"String"}]}]},"verification":{"trust_framework":"String","dvs_registration":{"registration_id":"String","name":"String","contact_email":"String","website":"String"},"evidence":[{"document":{"type":"String","document_details":{"type":"String","document_number":"String","date_of_issuance":"String","date_of_expiry":"String","issuer":{"name":"String","country_code":"String","jurisdiction":"String"}},"attachments":[{"desc":"String","content_type":"String","content_format":"String","content":"String"}],"check_details":[{"check_method":"String","check_id":"String","time":"String","organisation":"String"}]}}],"assurance_level":"String","assurance_process":{"policy":"String","procedure":"String","assurance_details":[{"assurance_type":"String","assurance_classification":"String","evidence_ref":[{"check_id":"String","evidence_ref":{"evidence_classification":"String"}}]}]}}},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}}