code: public function decodeDynamicField($value, Field $field)
      {
          $data = ['name' => $value['name']['S']];
          unset($value['name']);
  
          $kind = key($value);
          $data[$kind] = current($value[$kind]);
  
          return DynamicField::fromArray($data);
      }
docs: @param mixed $value
  @param Field $field
  
  @return DynamicField