Module Api.Contact

module Contact: sig .. end

type contact = {
   phone_number : string;
   first_name : string;
   last_name : string option;
   user_id : int option;
}
Represents a contact shared in a message

Create a `contact` in a concise manner

val create : phone_number:string ->
first_name:string ->
?last_name:string option ->
?user_id:int option -> unit -> contact
Read a `contact` out of some JSON
val read : Yojson.Safe.json -> contact