It looks like you're new here. If you want to get involved, click one of these buttons!
public class OrderPlacedResponse
{
        [DataMember]
        public string      status     { get; set; }
        [DataMember]
        public string      message    { get; set; }
        [DataMember]
        public string      error_type { get; set; }
        [DataMember]
        public OnlyOrderId data       { get; set; }
        public OrderPlacedResponse()
        {        }
        public OrderPlacedResponse( Dictionary<string,dynamic> response )
        {
            data   = new OnlyOrderId () ; 
            
            if ( response == null ) return ;
            
            if ( response.Keys?.Contains("status") ?? false )
                 status = response["status"] ;
            
            if ( response.Keys?.Contains("data") ?? false ) { 
            
                 var a = ( Dictionary<string,dynamic> ) response["data"] ; 
                 if ( a?.Keys?.Contains("order_id") ?? false )
                 {
                       data.order_id = a["order_id"] ; 
                 }
            }
            if ( response.Keys?.Contains( "message" ) ?? false )    { 
                 message   = response["message"] ; 
            }
            if ( response.Keys?.Contains( "error_type" ) ?? false ) { 
                 error_type = response["error_type"] ; 
            }
        }
 }
Thanks a bunch