DocuSign.Deserializer (DocuSign v3.1.1)

View Source

Helper functions for deserializing responses into models

Summary

Functions

Update the provided model with a deserialization of a nested value.

Functions

deserialize(model, field, atom, decoder)

@spec deserialize(struct(), atom(), atom(), (any() -> any())) :: struct()

Update the provided model with a deserialization of a nested value.

Parameters

  • model (struct) - The model to be updated
  • field (atom) - The field to be updated
  • field_type (atom) - The type of the field to be updated
  • decoder (function) - A function that can decode the value

Returns

Struct