code: protected function deserializeAttribute($value, $field, $record)
      {
          if ($this->isDateAttribute($field, $record)) {
              return $this->deserializeDate($value, $field, $record);
          }
  
          $method = 'deserialize' . Str::classify($field) . 'Field';
  
          if (method_exists($this, $method)) {
              return $this->{$method}($value, $record);
          }
  
          return $value;
      }
docs: Deserialize a value obtained from the resource's attributes.
  
  @param $value
  the value that the client provided.
  @param $field
  the attribute key for the value
  @param Model $record
  @return Carbon|null