encode<V> static method
Implementation
static V encode<V>(
LegalEntityPersonVerification instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.additionalDocument != null) {
LegalEntityCompanyVerificationDocument.encode(
instance.additionalDocument!,
container.nestedSingleValueContainer('additional_document').encoder,
);
}
if (instance.details != null) {
container.encodeString(
'details',
instance.details!,
);
}
if (instance.detailsCode != null) {
container.encodeString(
'details_code',
instance.detailsCode!,
);
}
if (instance.document != null) {
LegalEntityPersonVerificationDocument.encode(
instance.document!,
container.nestedSingleValueContainer('document').encoder,
);
}
container.encodeString(
'status',
instance.status,
);
return container.value;
}